Coder Social home page Coder Social logo

dgroup / enumerable4j Goto Github PK

View Code? Open in Web Editor NEW
29.0 4.0 4.0 211 KB

Amazing Ruby's "Enumerable" ported to Java

License: MIT License

Shell 1.39% Java 98.61%
java ruby enumerable collection elegantobjects library ruby-to-java java-collections java-collections-framework streams-api

enumerable4j's Introduction

visitor badge

dgroup | Gmail dgroup | LinkedIn dgroup | Twitter dgroup | Telegram dgroup | Skype dgroup | Instagram



I'm a developer, tech. lead and technical project manager, open-source contributor, author of few libs in maven central and ruby gems, won the "Software Quality Award, 2018."

Iโ€™m currently working on a lazylead. Join to our channel here Winner Badge .

lazylead/readme.md

Languages and Tools:

Java

Docker

SQL

Oracle SQL

Ruby

Git

GitHub

Linux



dgroup's Github Stats

dgroup's Lang Stats

enumerable4j's People

Contributors

dgroup avatar dykov avatar singhashutosh96 avatar smithros avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

enumerable4j's Issues

build.yml:18: Enable Java8 for this project. For now the...

The puzzle DEV-edd83387 from #DEV has to be resolved:

# @todo #/DEV Enable Java8 for this project. For now the default config is used for JDK15.

The puzzle was created by @dgroup on 06-Mar-21.

role: DEV.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

Refactoring: Joined support methods

i think it would be a good idea to add support of Joined instance for all methods with the (Predicate<X>, Predicate<X>...) signature:

all(Joined<X>)

build.yml:11-12: Think about matrix build for linux,osx...

The puzzle DEV-498a8074 from #DEV has to be resolved:

# @todo #/DEV Think about matrix build for linux,osx and win OS.
# https://stackoverflow.com/questions/57946173/github-actions-run-step-on-specific-os

The puzzle was created by @dgroup on 06-Mar-21.

role: DEV.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

pom.xml:57: Setup codebeat with enumerable4j and fix...

The puzzle DEV-e6452ef8 from #DEV has to be resolved:

<!-- @todo #/DEV Setup codebeat with enumerable4j and fix badge in the readme.md file -->

The puzzle was created by @dgroup on 06-Mar-21.

role: DEV.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

Unable to find javadoc command: The environment variable JAVA_HOME is not correctly set

Downloaded from Maven: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-archiver/2.1.2/plexus-archiver-2.1.2.jar (185 kB at 423 kB/s)
Downloaded from Maven: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.5/plexus-utils-3.0.5.jar (230 kB at 526 kB/s)
[\u001b[1;34mINFO\u001b[m] \u001b[1m------------------------------------------------------------------------\u001b[m
[\u001b[1;34mINFO\u001b[m] \u001b[1;31mBUILD FAILURE\u001b[m
[\u001b[1;34mINFO\u001b[m] \u001b[1m------------------------------------------------------------------------\u001b[m
[\u001b[1;34mINFO\u001b[m] Total time:  34.006 s
[\u001b[1;34mINFO\u001b[m] Finished at: 2021-03-07T11:31:34Z
[\u001b[1;34mINFO\u001b[m] \u001b[1m------------------------------------------------------------------------\u001b[m
[\u001b[1;31mERROR\u001b[m] Failed to execute goal \u001b[32morg.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar\u001b[m \u001b[1m(attach-javadocs)\u001b[m on project \u001b[36menumerable4j\u001b[m: \u001b[1;31mMavenReportException: Error while creating archive: Unable to find javadoc command: The environment variable JAVA_HOME is not correctly set.\u001b[m -> \u001b[1m[Help 1]\u001b[m
[\u001b[1;31mERROR\u001b[m] 
[\u001b[1;31mERROR\u001b[m] To see the full stack trace of the errors, re-run Maven with the \u001b[1m-e\u001b[m switch.
[\u001b[1;31mERROR\u001b[m] Re-run Maven using the \u001b[1m-X\u001b[m switch to enable full debug logging.
[\u001b[1;31mERROR\u001b[m] 
[\u001b[1;31mERROR\u001b[m] For more information about the errors and possible solutions, please read the following articles:
[\u001b[1;31mERROR\u001b[m] \u001b[1m[Help 1]\u001b[m http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
container dc19b06b4fafa583a33361e907522fdbb33cc0e191add0d635cd4ae369563011 is dead
Sun Mar  7 12:31:36 CET 2021

Refactoring .after(Predicate<X> prd, long size)

Actual result:

default Enumerable<X> after(Predicate<X> prd, long size) {
    final Enumerable<X> out;
    if (size < 0) {
        throw new IllegalArgumentException(Long.toString(size));
    } else if (size == 0) {
        out = new Empty<>();
    } else if (prd == null) {
        out = new Linked<>(this.stream().limit(size).collect(Collectors.toList()));
    } else {
        ...

Expected result:

default Enumerable<X> after(Predicate<X> prd, long size) {
    final Enumerable<X> out;
    if (size < 0) {
        throw new IllegalArgumentException(Long.toString(size));
    } else if (size == 0 || prd == null) {
        out = new Empty<>();
    } else {
       ...

Fix all vararg-support methods: NPE

We get NPE in cases method(prd, null):
Example:

Predicate<T> prd = ...
src.all( prd , null );

Enumerable#all :

default boolean all(Predicate<X> first, Predicate<X>... other) {
        // ...
        for (final Predicate<X> oth : other) {   // NPE
            // ...
        }
         // ...
    }

.rultor.yml:7-16: Configure the deployment to dev maven...

The puzzle DEV-8084d74e from #DEV has to be resolved:

# @todo #/DEV Configure the deployment to dev maven repository in Github in order to work with RC and snapshots.
# The dev repo should be Github for master branch + bugfix branches if needed.
# As a plan B, we can consider promoting using Nexus+OSSRH:
# https://help.sonatype.com/repomanager2/staging-releases/staging-overview
# https://help.sonatype.com/repomanager2/staging-releases/configuring-your-project-for-deployment
# https://nvie.com/posts/a-successful-git-branching-model
# https://github.com/nvie/gitflow
# https://gist.github.com/lemiorhan/97b4f827c08aed58a9d8
# https://github.com/jgitver/jgitver
# https://danielkummer.github.io/git-flow-cheatsheet/index.html

The puzzle was created by @dgroup on 06-Mar-21.

role: DEV.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

EnumerableOf.java:39: Use empty enumerable in case if no...

The puzzle DEV-9c5b6638 from #DEV has to be resolved:

* @todo #/DEV Use empty enumerable in case if no func provided to method map.

The puzzle was created by @smithros on 10-Mar-21.

role: DEV.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

Add '.after' method

The method takes two arguments: condition as a predicate and number of elements after first found element as integer.

Refactoring: null-predicate case for select & reject

Is it normal that both select and reject return this in case of null predicate?
I think it would be more clearer if the select method returns an empty collection.

src.reject(null); // nothing found to drop from collection -> returns 'this'
src.select(null); // nothing found to take from collection -> returns Empty()

.rultor.yml:19: Generate a new key for signing and...

The puzzle DEV-c5e35e81 from #DEV has to be resolved:

# @todo #/DEV Generate a new key for signing and publishing artifacts to Maven Central.

The puzzle was created by @dgroup on 06-Mar-21.

role: DEV.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &lt;a href=https://keys.openpgp.org/&gt;https://keys.openpgp.org/&lt;/a&gt;. Upload your public key and try the operation again.

#77 (comment)
https://www.rultor.com/t/24750-877701771

<stagingActivity>
   <name>close</name>
   <started>2021-07-10T20:48:37.252Z</started>
   <startedByUserId>dubinka</startedByUserId>
   <startedByIpAddress>178.238.227.105</startedByIpAddress>
   <stopped>2021-07-10T20:49:25.915Z</stopped>
   &lt;events&gt;
     &lt;stagingActivityEvent&gt;
   &lt;timestamp&gt;2021-07-10T20:48:38.536Z&lt;/timestamp&gt;
   &lt;name&gt;rulesEvaluate&lt;/name&gt;
   &lt;severity&gt;0&lt;/severity&gt;
   &lt;properties&gt;
     &lt;stagingProperty&gt;
       &lt;name&gt;id&lt;/name&gt;
       &lt;value&gt;5e9e8e6f8d20a3&lt;/value&gt;
     &lt;/stagingProperty>
     <stagingProperty>
       <name>rule</name>
       <value>no-traversal-paths-in-archive-file</value>
     </stagingProperty>
     <stagingProperty>
       <name>rule</name>
       <value>profile-target-matching-staging</value>
     </stagingProperty>
     <stagingProperty>
       <name>rule</name>
       <value>sbom-report</value>
     </stagingProperty>
     <stagingProperty>
       <name>rule</name>
       <value>checksum-staging</value>
     </stagingProperty&gt;
     &lt;stagingProperty&gt;
       &lt;name&gt;rule&lt;/name&gt;
       &lt;value&gt;javadoc-staging&lt;/value&gt;
     &lt;/stagingProperty&gt;
     &lt;stagingProperty&gt;
       &lt;name&gt;rule&lt;/name&gt;
       &lt;value&gt;pom-staging&lt;/value&gt;
     &lt;/stagingProperty&gt;
     &lt;stagingProperty&gt;
       &lt;name&gt;rule&lt;/name&gt;
       <value>signature-staging</value>
     </stagingProperty>
     <stagingProperty>
       <name>rule</name>
       <value>sources-staging</value>
     </stagingProperty>
   </properties>
     </stagingActivityEvent>
     <stagingActivityEvent>
   <timestamp>2021-07-10T20:48:39.805Z</timestamp>
   <name>ruleEvaluate</name>
   <severity>0</severity>
   <properties>
     <stagingProperty>
       <name>typeId</name>
       <value>sbom-report&lt;/value&gt;
     &lt;/stagingProperty&gt;
   &lt;/properties&gt;
     &lt;/stagingActivityEvent&gt;
     &lt;stagingActivityEvent&gt;
   &lt;timestamp&gt;2021-07-10T20:48:41.449Z&lt;/timestamp&gt;
   &lt;name&gt;rulePassed&lt;/name&gt;
   &lt;severity&gt;0&lt;/severity&gt;
   &lt;properties&gt;
     &lt;stagingProperty&gt;
       &lt;name&gt;typeId</name>
       <value>sbom-report</value>
     </stagingProperty>
     <stagingProperty>
       <name>successMessage</name>
       <value>Successfully requested SBOM report</value>
     </stagingProperty>
   </properties>
     </stagingActivityEvent>
     <stagingActivityEvent>
   <timestamp>2021-07-10T20:48:42.947Z</timestamp>
   <name>ruleEvaluate</name>
   <severity>0</severity>
   <properties>
     <stagingProperty>
       <name>typeId</name>
       &lt;value&gt;javadoc-staging&lt;/value&gt;
     &lt;/stagingProperty&gt;
   &lt;/properties&gt;
     &lt;/stagingActivityEvent&gt;
     &lt;stagingActivityEvent&gt;
   &lt;timestamp&gt;2021-07-10T20:48:44.230Z&lt;/timestamp&gt;
   &lt;name&gt;rulePassed&lt;/name&gt;
   &lt;severity&gt;0&lt;/severity&gt;
   &lt;properties&gt;
     <stagingProperty>
       <name>typeId</name>
       <value>javadoc-staging</value>
     </stagingProperty>
   </properties>
     </stagingActivityEvent>
     <stagingActivityEvent>
   <timestamp>2021-07-10T20:48:45.725Z</timestamp>
   <name>ruleEvaluate</name>
   <severity>0</severity>
   <properties>
     <stagingProperty>
       <name>typeId</name>
       <value>sources-staging</value>
     </stagingProperty>
   </properties>
     </stagingActivityEvent>
     <stagingActivityEvent&gt;
   &lt;timestamp&gt;2021-07-10T20:48:47.001Z&lt;/timestamp&gt;
   &lt;name&gt;rulePassed&lt;/name&gt;
   &lt;severity&gt;0&lt;/severity&gt;
   &lt;properties&gt;
     &lt;stagingProperty&gt;
       &lt;name&gt;typeId&lt;/name&gt;
       &lt;value&gt;sources-staging&lt;/value&gt;
     &lt;/stagingProperty&gt;
   &lt;/properties>
     </stagingActivityEvent>
     <stagingActivityEvent>
   <timestamp>2021-07-10T20:48:48.260Z</timestamp>
   <name>ruleEvaluate</name>
   <severity>0</severity>
   <properties>
     <stagingProperty>
       <name>typeId</name>
       <value>pom-staging</value>
     </stagingProperty>
   </properties>
     </stagingActivityEvent>
     <stagingActivityEvent>
   <timestamp>2021-07-10T20:48:49.586Z</timestamp>
   <name>rulePassed</name>
   <severity>0</severity&gt;
   &lt;properties&gt;
     &lt;stagingProperty&gt;
       &lt;name&gt;typeId&lt;/name&gt;
       &lt;value&gt;pom-staging&lt;/value&gt;
     &lt;/stagingProperty&gt;
   &lt;/properties&gt;
     &lt;/stagingActivityEvent&gt;
     &lt;stagingActivityEvent&gt;
   &lt;timestamp&gt;2021-07-10T20:48:51.015Z&lt;/timestamp&gt;
   &lt;name>ruleEvaluate</name>
   <severity>0</severity>
   <properties>
     <stagingProperty>
       <name>typeId</name>
       <value>profile-target-matching-staging</value>
     </stagingProperty>
   </properties>
     </stagingActivityEvent>
     <stagingActivityEvent>
   <timestamp>2021-07-10T20:48:52.282Z</timestamp>
   <name>rulePassed</name>
   <severity>0</severity>
   <properties>
     <stagingProperty>
       <name>typeId</name>
       <value>profile-target-matching-staging&lt;/value&gt;
     &lt;/stagingProperty&gt;
   &lt;/properties&gt;
     &lt;/stagingActivityEvent&gt;
     &lt;stagingActivityEvent&gt;
   &lt;timestamp&gt;2021-07-10T20:48:53.540Z&lt;/timestamp&gt;
   &lt;name&gt;ruleEvaluate&lt;/name&gt;
   &lt;severity&gt;0&lt;/severity&gt;
   &lt;properties&gt;
     &lt;stagingProperty>
       <name>typeId</name>
       <value>checksum-staging</value>
     </stagingProperty>
   </properties>
     </stagingActivityEvent>
     <stagingActivityEvent>
   <timestamp>2021-07-10T20:48:54.844Z</timestamp>
   <name>rulePassed</name>
   <severity>0</severity>
   <properties>
     <stagingProperty>
       <name>typeId</name>
       <value>checksum-staging</value>
     </stagingProperty>
   </properties>
     </stagingActivityEvent>
     <stagingActivityEvent>
   &lt;timestamp&gt;2021-07-10T20:48:56.263Z&lt;/timestamp&gt;
   &lt;name&gt;ruleEvaluate&lt;/name&gt;
   &lt;severity&gt;0&lt;/severity&gt;
   &lt;properties&gt;
     &lt;stagingProperty&gt;
       &lt;name&gt;typeId&lt;/name&gt;
       &lt;value&gt;no-traversal-paths-in-archive-file&lt;/value&gt;
     &lt;/stagingProperty&gt;
   &lt;/properties>
     </stagingActivityEvent>
     <stagingActivityEvent>
   <timestamp>2021-07-10T20:48:57.538Z</timestamp>
   <name>rulePassed</name>
   <severity>0</severity>
   <properties>
     <stagingProperty>
       <name>typeId</name>
       <value>no-traversal-paths-in-archive-file</value>
     </stagingProperty>
   </properties>
     </stagingActivityEvent>
     <stagingActivityEvent>
   <timestamp>2021-07-10T20:48:58.795Z</timestamp>
   <name>ruleEvaluate</name>
   &lt;severity&gt;0&lt;/severity&gt;
   &lt;properties&gt;
     &lt;stagingProperty&gt;
       &lt;name&gt;typeId&lt;/name&gt;
       &lt;value&gt;signature-staging&lt;/value&gt;
     &lt;/stagingProperty&gt;
   &lt;/properties&gt;
     &lt;/stagingActivityEvent&gt;
     &lt;stagingActivityEvent&gt;
   &lt;timestamp&gt;2021-07-10T20:49:22.006Z</timestamp>
   <name>ruleFailed</name>
   <severity>1</severity>
   <properties>
     <stagingProperty>
       <name>typeId</name>
       <value>signature-staging</value>
     </stagingProperty>
     <stagingProperty>
       <name>failureMessage</name>
       <value>No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &lt;a href=&quot;http://keyserver.ubuntu.com:11371/&quot;&gt;http://keyserver.ubuntu.com:11371/&lt;/a&gt;. Upload your public key and try the operation again.&lt;/value&gt;
     &lt;/stagingProperty&gt;
     &lt;stagingProperty&gt;
       &lt;name&gt;failureMessage&lt;/name&gt;
       &lt;value&gt;No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &amp;lt;a href=&amp;quot;https://keys.openpgp.org/&quot;&gt;https://keys.openpgp.org/&lt;/a&gt;. Upload your public key and try the operation again.</value>
     </stagingProperty>
     <stagingProperty>
       <name>failureMessage</name>
       <value>No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &lt;a href=&quot;http://pgp.mit.edu:11371/&quot;&gt;http://pgp.mit.edu:11371/&lt;/a&gt;. Upload your public key and try the operation again.</value>
     </stagingProperty>
     <stagingProperty>
       <name>failureMessage</name>
       <value>No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &amp;lt;a href=&amp;quot;http://keyserver.ubuntu.com:11371/&amp;quot;&amp;gt;http://keyserver.ubuntu.com:11371/&amp;lt;/a&amp;gt;. Upload your public key and try the operation again.&lt;/value>
     </stagingProperty>
     <stagingProperty>
       <name>failureMessage</name>
       <value>No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &lt;a href=&quot;https://keys.openpgp.org/&quot;&gt;https://keys.openpgp.org/&lt;/a&gt;. Upload your public key and try the operation again.</value>
     </stagingProperty>
     <stagingProperty>
       <name>failureMessage</name>
       <value>No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &lt;a href=&quot;http://pgp.mit.edu:11371/&quot;&gt;http://pgp.mit.edu:11371/&lt;/a&gt;. Upload your public key and try the operation again.</value>
     </stagingProperty>
     <stagingProperty&gt;
       &lt;name&gt;failureMessage&lt;/name&gt;
       &lt;value&gt;No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &amp;lt;a href=&amp;quot;http://keyserver.ubuntu.com:11371/&quot;&gt;http://keyserver.ubuntu.com:11371/&lt;/a&gt;. Upload your public key and try the operation again.</value>
     </stagingProperty>
     <stagingProperty>
       <name>failureMessage</name>
       <value>No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &lt;a href=&quot;https://keys.openpgp.org/&quot;&gt;https://keys.openpgp.org/&lt;/a&gt;. Upload your public key and try the operation again.</value>
     </stagingProperty>
     <stagingProperty>
       <name>failureMessage</name>
       <value>No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &lt;a href=&quot;http://pgp.mit.edu:11371/&quot;&gt;http://pgp.mit.edu:11371/&amp;lt;/a&amp;gt;. Upload your public key and try the operation again.&lt;/value&gt;
     &lt;/stagingProperty&gt;
     &lt;stagingProperty&gt;
       &lt;name&gt;failureMessage&lt;/name>
       <value>No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &lt;a href=&quot;http://keyserver.ubuntu.com:11371/&quot;&gt;http://keyserver.ubuntu.com:11371/&lt;/a&gt;. Upload your public key and try the operation again.</value>
     </stagingProperty>
     <stagingProperty>
       <name>failureMessage</name>
       <value>No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &lt;a href=&quot;https://keys.openpgp.org/&quot;&gt;https://keys.openpgp.org/&lt;/a&gt;. Upload your public key and try the operation again.</value>
     </stagingProperty>
     <stagingProperty>
       <name>failureMessage</name>
       <value&gt;No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &amp;lt;a href=&amp;quot;http://pgp.mit.edu:11371/&amp;quot;&amp;gt;http://pgp.mit.edu:11371/&amp;lt;/a&amp;gt;. Upload your public key and try the operation again.</value>
     </stagingProperty>
   </properties>
     </stagingActivityEvent>
     <stagingActivityEvent>
   <timestamp>2021-07-10T20:49:23.370Z</timestamp>
   <name>rulesFailed</name>
   <severity>1</severity>
   <properties>
     <stagingProperty>
       <name>id</name>
       <value>5e9e8e6f8d20a3</value>
     </stagingProperty>
     <stagingProperty>
       <name>failureCount</name>
       <value>1</value>
     </stagingProperty>
   </properties>
     </stagingActivityEvent>
     <stagingActivityEvent>
   <timestamp>2021-07-10T20:49:24.648Z</timestamp>
   <name>repositoryCloseFailed</name&gt;
   &lt;severity&gt;1&lt;/severity&gt;
   &lt;properties&gt;
     &lt;stagingProperty&gt;
       &lt;name&gt;id&lt;/name&gt;
       &lt;value&gt;iogithubdgroup-1027&lt;/value&gt;
     &lt;/stagingProperty&gt;
     &lt;stagingProperty&gt;
       &lt;name&gt;cause&lt;/name&gt;
       &lt;value&gt;com.sonatype.nexus.staging.StagingRulesFailedException: One or more rules have failed</value>
     </stagingProperty>
   </properties>
     </stagingActivityEvent>
   </events>
 </stagingActivity>
</list>

[1;36mDEBUGm] STOP after 53.30 s
[1;31mERRORm] Rule failure while trying to close staging repository with ID "iogithubdgroup-1027".
[1;31mERRORm]
[1;31mERRORm] Nexus Staging Rules Failure Report
[1;31mERRORm] ==================================
[1;31mERRORm]
[1;31mERRORm] Repository "iogithubdgroup-1027" failures
[1;31mERRORm]	Rule "signature-staging" failures
[1;31mERRORm]	  * No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &amp;lt;a href=http://keyserver.ubuntu.com:11371/&amp;gt;http://keyserver.ubuntu.com:11371/&lt;/a&gt;. Upload your public key and try the operation again.
[1;31mERRORm]	  * No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &lt;a href=https://keys.openpgp.org/&gt;https://keys.openpgp.org/&lt;/a&gt;. Upload your public key and try the operation again.
[1;31mERRORm]	  * No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &lt;a href=http://pgp.mit.edu:11371/&gt;http://pgp.mit.edu:11371/&lt;/a&gt;. Upload your public key and try the operation again.
[1;31mERRORm]	  * No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &lt;a href=http://keyserver.ubuntu.com:11371/&gt;http://keyserver.ubuntu.com:11371/&lt;/a&gt;. Upload your public key and try the operation again.
[1;31mERRORm]	  * No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &lt;a href=https://keys.openpgp.org/&gt;https://keys.openpgp.org/&lt;/a&gt;. Upload your public key and try the operation again.
[1;31mERRORm]	  * No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &lt;a href=http://pgp.mit.edu:11371/&gt;http://pgp.mit.edu:11371/&lt;/a&gt;. Upload your public key and try the operation again.
[1;31mERRORm]	  * No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &lt;a href=http://keyserver.ubuntu.com:11371/&gt;http://keyserver.ubuntu.com:11371/&lt;/a&gt;. Upload your public key and try the operation again.
[1;31mERRORm]	  * No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &lt;a href=https://keys.openpgp.org/&gt;https://keys.openpgp.org/&lt;/a&gt;. Upload your public key and try the operation again.
[1;31mERRORm]	  * No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &amp;lt;a href=http://pgp.mit.edu:11371/&gt;http://pgp.mit.edu:11371/&lt;/a&gt;. Upload your public key and try the operation again.
[1;31mERRORm]	  * No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &lt;a href=http://keyserver.ubuntu.com:11371/&gt;http://keyserver.ubuntu.com:11371/&lt;/a&gt;. Upload your public key and try the operation again.
[1;31mERRORm]	  * No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &lt;a href=https://keys.openpgp.org/&gt;https://keys.openpgp.org/&lt;/a&gt;. Upload your public key and try the operation again.
[1;31mERRORm]	  * No public key: Key with id: (51fb8bca8b01aa62) was not able to be located on &lt;a href=http://pgp.mit.edu:11371/&gt;http://pgp.mit.edu:11371/&lt;/a&gt;. Upload your public key and try the operation again.

pom.xml:146: Activate de.thetaphi:forbiddenapis in order...

The puzzle DEV-08faa53a from #DEV has to be resolved:

<!-- @todo #/DEV Activate de.thetaphi:forbiddenapis in order to forbid the usage of forbidden API like static matchers, etc -->

The puzzle was created by @dgroup on 06-Mar-21.

role: DEV.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

Add '.next' method

The method takes an argument: condition as a predicate.
Returns next collection element after the first one found.
Can be implemented as '.after' method invocation.

Methods should support vararg predicates

public boolean any(Predicate<T> first, Predicate<T> ... other);
public boolean all(Predicate<T> first, Predicate<T> ... other);
public Enumerable<T> select(Predicate<T> first, Predicate<T> ... other);

Refactoring: add logical OR for Joined

Now Joined is a compound predicate that represents a short-circuiting logical AND of all given predicates.
We need some method/inner class for logical OR.

I suggest using static classes:

new Joined.And( ... );
new Joined.Or( ... );

DepShield encountered errors while building your project

The project could not be analyzed because of build errors. Please review the error messages here. Another build will be scheduled when a change to a manifest file* occurs. If the build is successful this issue will be closed, otherwise the error message will be updated.

This is an automated GitHub Issue created by Sonatype DepShield. GitHub Apps, including DepShield, can be managed from the Developer settings of the repository administrators.

* Supported manifest files are: pom.xml, package.json, package-lock.json, npm-shrinkwrap.json, Cargo.lock, Cargo.toml, main.rs, lib.rs, build.gradle, build.gradle.kts, settings.gradle, settings.gradle.kts, gradle.properties, gradle-wrapper.properties, go.mod, go.sum

pom.xml:196: Activate JMH for testing on JDK8

The puzzle DEV-5f4df571 from #DEV has to be resolved:

<!-- @todo #/DEV Activate JMH for testing on JDK8

The puzzle was created by @dgroup on 06-Mar-21.

role: DEV.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.8.0.2131:sonar (default-cli) on project enumerable4j: You're not authorized to run analysis. Please contact the project administrator

https://github.com/dgroup/enumerable4j/runs/2092883368

07:04:13,832 [INFO] --- sonar-maven-plugin:3.8.0.2131:sonar (default-cli) @ enumerable4j ---
07:04:14,135 [INFO] User cache: /home/runner/.sonar/cache
07:04:16,732 [INFO] SonarQube version: 8.5.0
07:04:16,754 [INFO] Default locale: "en", source code encoding: "UTF-8"
07:04:17,319 [INFO] Load global settings
07:04:17,955 [INFO] Load global settings (done) | time=637ms
07:04:17,961 [INFO] Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
07:04:17,964 [INFO] User cache: /home/runner/.sonar/cache
07:04:17,967 [INFO] Load/download plugins
07:04:17,967 [INFO] Load plugins index
07:04:18,132 [INFO] Load plugins index (done) | time=165ms
07:04:18,423 [INFO] Load/download plugins (done) | time=456ms
07:04:18,573 [INFO] Loaded core extensions: developer-scanner
07:04:18,898 [INFO] JavaScript/TypeScript frontend is enabled
07:04:19,176 [INFO] Found an active CI vendor: 'Github Actions'
07:04:19,185 [INFO] Load project settings for component key: 'dgroup_enumerable4j'
07:04:19,310 [INFO] Load project settings for component key: 'dgroup_enumerable4j' (done) | time=125ms
07:04:19,314 [INFO] Process project properties
07:04:19,323 [INFO] Execute project builders
07:04:19,325 [INFO] Execute project builders (done) | time=2ms
07:04:19,327 [INFO] Project key: dgroup_enumerable4j
07:04:19,327 [INFO] Base dir: /home/runner/work/enumerable4j/enumerable4j
07:04:19,328 [INFO] Working dir: /home/runner/work/enumerable4j/enumerable4j/target/sonar
07:04:19,458 [INFO] Load project branches
07:04:19,566 [INFO] Load project branches (done) | time=108ms
07:04:19,568 [INFO] Check ALM binding of project 'dgroup_enumerable4j'
Warning: 666 [WARNING] Failed to check if project 'dgroup_enumerable4j' is bound
07:04:19,666 [INFO] Detected project binding: ERROR
07:04:19,666 [INFO] Check ALM binding of project 'dgroup_enumerable4j' (done) | time=98ms
07:04:19,668 [INFO] Load project pull requests
07:04:19,801 [INFO] Load project pull requests (done) | time=133ms
07:04:19,804 [INFO] Load branch configuration
07:04:19,805 [INFO] Github event: pull_request
07:04:19,820 [INFO] Auto-configuring pull request 41
07:04:19,824 [INFO] Load branch configuration (done) | time=20ms
07:04:19,851 [INFO] Load quality profiles
07:04:19,999 [INFO] Load quality profiles (done) | time=148ms
07:04:20,003 [INFO] Load active rules
07:04:23,680 [INFO] Load active rules (done) | time=3676ms
07:04:23,702 [INFO] Organization key: dgroup-github
07:04:23,704 [INFO] Pull request 41 for merge into master from implemented_count_#29
07:04:23,723 [INFO] SCM collecting changed files in the branch
07:04:24,123 [INFO] SCM collecting changed files in the branch (done) | time=400ms
07:04:24,167 [INFO] Indexing files...
07:04:24,168 [INFO] Project configuration:
07:04:24,168 [INFO]   Excluded sources for coverage: **/*Exception.java, **/*Fake*.java, **/*.Fake*.java, **/**.Fake*.java
07:04:24,232 [INFO] 11 files indexed
07:04:24,233 [INFO] 0 files ignored because of scm ignore settings
07:04:24,235 [INFO] Quality profile for java: All java related rules with cactoos-matches assertions
07:04:24,236 [INFO] Quality profile for xml: Sonar way
07:04:24,437 [INFO] ------------- Run sensors on module enumerable4j
07:04:24,564 [INFO] JavaScript/TypeScript frontend is enabled
07:04:24,587 [INFO] Load metrics repository
07:04:24,695 [INFO] Load metrics repository (done) | time=108ms
07:04:27,332 [INFO] Sensor JavaSquidSensor [java]
07:04:27,764 [INFO] Configured Java source version (sonar.java.source): 8
07:04:27,772 [INFO] JavaClasspath initialization
07:04:27,778 [INFO] JavaClasspath initialization (done) | time=6ms
07:04:27,778 [INFO] JavaTestClasspath initialization
07:04:27,779 [INFO] JavaTestClasspath initialization (done) | time=1ms
07:04:27,789 [INFO] Java Main Files AST scan
07:04:27,790 [INFO] 3 source files to be analyzed
07:04:29,677 [INFO] 3/3 source files have been analyzed
07:04:29,680 [INFO] Java Main Files AST scan (done) | time=1891ms
07:04:29,681 [INFO] Java Test Files AST scan
07:04:29,681 [INFO] 7 source files to be analyzed
Warning: 745 [WARNING] Unable to create a corresponding matcher for custom assertion method, please check the format of the following symbol: 'affirm'
Warning: 141 [WARNING] Unresolved imports/types have been detected during analysis. Enable DEBUG mode to see them.
07:04:30,142 [INFO] Java Test Files AST scan (done) | time=461ms
07:04:30,143 [INFO] 7/7 source files have been analyzed
07:04:30,143 [INFO] Java Generated Files AST scan
07:04:30,144 [INFO] 0 source files to be analyzed
07:04:30,145 [INFO] Java Generated Files AST scan (done) | time=2ms
07:04:30,145 [INFO] Sensor JavaSquidSensor [java] (done) | time=2813ms
07:04:30,145 [INFO] Sensor SonarCSS Rules [cssfamily]
07:04:30,146 [INFO] No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
07:04:30,146 [INFO] Sensor SonarCSS Rules [cssfamily] (done) | time=1ms
07:04:30,147 [INFO] Sensor C# Project Type Information [csharp]
07:04:30,147 [INFO] Sensor C# Project Type Information [csharp] (done) | time=0ms
07:04:30,148 [INFO] Sensor C# Properties [csharp]
07:04:30,149 [INFO] Sensor C# Properties [csharp] (done) | time=1ms
07:04:30,150 [INFO] Sensor SurefireSensor [java]
07:04:30,152 [INFO] parsing [/home/runner/work/enumerable4j/enumerable4j/target/surefire-reports]
07:04:30,167 [INFO] 0/0 source files have been analyzed
07:04:30,263 [INFO] Sensor SurefireSensor [java] (done) | time=113ms
07:04:30,264 [INFO] Sensor JavaXmlSensor [java]
07:04:30,266 [INFO] 1 source files to be analyzed
07:04:30,541 [INFO] 1/1 source files have been analyzed
07:04:30,542 [INFO] Sensor JavaXmlSensor [java] (done) | time=278ms
07:04:30,543 [INFO] Sensor HTML [web]
07:04:30,546 [INFO] Sensor HTML [web] (done) | time=4ms
07:04:30,547 [INFO] Sensor XML Sensor [xml]
07:04:30,560 [INFO] 1 source file to be analyzed
07:04:30,737 [INFO] 1/1 source file has been analyzed
07:04:30,743 [INFO] Sensor XML Sensor [xml] (done) | time=196ms
07:04:30,744 [INFO] Sensor VB.NET Project Type Information [vbnet]
07:04:30,746 [INFO] Sensor VB.NET Project Type Information [vbnet] (done) | time=2ms
07:04:30,746 [INFO] Sensor VB.NET Properties [vbnet]
07:04:30,748 [INFO] Sensor VB.NET Properties [vbnet] (done) | time=2ms
07:04:30,748 [INFO] Sensor JaCoCo XML Report Importer [jacoco]
07:04:30,752 [INFO] Importing 1 report(s). Turn your logs in debug mode in order to see the exhaustive list.
07:04:30,762 [INFO] Sensor JaCoCo XML Report Importer [jacoco] (done) | time=14ms
07:04:30,763 [INFO] Sensor ThymeLeaf template sensor [securityjavafrontend]
07:04:30,764 [INFO] Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=1ms
07:04:30,765 [INFO] Sensor JavaSecuritySensor [security]
07:04:30,766 [INFO] Reading type hierarchy from: /home/runner/work/enumerable4j/enumerable4j/target/sonar/ucfg2/java
07:04:30,838 [INFO] Read 16 type definitions
07:04:30,842 [INFO] Reading UCFGs from: /home/runner/work/enumerable4j/enumerable4j/target/sonar/ucfg2/java
07:04:30,885 [INFO] 07:04:30.884717 Building Runtime Type propagation graph
07:04:30,890 [INFO] 07:04:30.890592 Running Tarjan on 18 nodes
07:04:30,892 [INFO] 07:04:30.892183 Tarjan found 18 components
07:04:30,914 [INFO] 07:04:30.914088 Variable type analysis: done
07:04:30,916 [INFO] 07:04:30.916241 Building Runtime Type propagation graph
07:04:30,924 [INFO] 07:04:30.924301 Running Tarjan on 18 nodes
07:04:30,924 [INFO] 07:04:30.924827 Tarjan found 18 components
07:04:30,925 [INFO] 07:04:30.925324 Variable type analysis: done
07:04:30,926 [INFO] Analyzing 9 ucfgs to detect vulnerabilities.
07:04:31,197 [INFO] All rules entrypoints : 0 Retained UCFGs : 0
07:04:31,199 [INFO] rule: S5131, entrypoints: 0
07:04:31,207 [INFO] rule: S5131 done
07:04:31,208 [INFO] rule: S3649, entrypoints: 0
07:04:31,208 [INFO] rule: S3649 done
07:04:31,208 [INFO] rule: S2076, entrypoints: 0
07:04:31,209 [INFO] rule: S2076 done
07:04:31,209 [INFO] rule: S2091, entrypoints: 0
07:04:31,210 [INFO] rule: S2091 done
07:04:31,210 [INFO] rule: S2078, entrypoints: 0
07:04:31,210 [INFO] rule: S2078 done
07:04:31,211 [INFO] rule: S2631, entrypoints: 0
07:04:31,211 [INFO] rule: S2631 done
07:04:31,211 [INFO] rule: S5135, entrypoints: 0
07:04:31,212 [INFO] rule: S5135 done
07:04:31,212 [INFO] rule: S2083, entrypoints: 0
07:04:31,212 [INFO] rule: S2083 done
07:04:31,212 [INFO] rule: S5167, entrypoints: 0
07:04:31,212 [INFO] rule: S5167 done
07:04:31,212 [INFO] rule: S5144, entrypoints: 0
07:04:31,212 [INFO] rule: S5144 done
07:04:31,213 [INFO] rule: S5145, entrypoints: 0
07:04:31,213 [INFO] rule: S5145 done
07:04:31,213 [INFO] rule: S5146, entrypoints: 0
07:04:31,213 [INFO] rule: S5146 done
07:04:31,213 [INFO] rule: S5334, entrypoints: 0
07:04:31,213 [INFO] rule: S5334 done
07:04:31,213 [INFO] rule: S6096, entrypoints: 0
07:04:31,213 [INFO] rule: S6096 done
07:04:31,213 [INFO] Sensor JavaSecuritySensor [security] (done) | time=448ms
07:04:31,214 [INFO] Sensor CSharpSecuritySensor [security]
07:04:31,214 [INFO] Reading type hierarchy from: /home/runner/work/enumerable4j/enumerable4j/target/ucfg_cs2
07:04:31,214 [INFO] Read 0 type definitions
07:04:31,214 [INFO] Reading UCFGs from: /home/runner/work/enumerable4j/enumerable4j/target/ucfg_cs2
07:04:31,215 [INFO] No UCFGs have been included for analysis.
07:04:31,215 [INFO] Sensor CSharpSecuritySensor [security] (done) | time=1ms
07:04:31,215 [INFO] Sensor PhpSecuritySensor [security]
07:04:31,215 [INFO] Reading type hierarchy from: /home/runner/work/enumerable4j/enumerable4j/target/sonar/ucfg2/php
07:04:31,215 [INFO] Read 0 type definitions
07:04:31,215 [INFO] Reading UCFGs from: /home/runner/work/enumerable4j/enumerable4j/target/sonar/ucfg2/php
07:04:31,216 [INFO] No UCFGs have been included for analysis.
07:04:31,216 [INFO] Sensor PhpSecuritySensor [security] (done) | time=1ms
07:04:31,216 [INFO] Sensor PythonSecuritySensor [security]
07:04:31,216 [INFO] Reading type hierarchy from: /home/runner/work/enumerable4j/enumerable4j/target/sonar/ucfg2/python
07:04:31,216 [INFO] Read 0 type definitions
07:04:31,219 [INFO] Reading UCFGs from: /home/runner/work/enumerable4j/enumerable4j/target/sonar/ucfg2/python
07:04:31,220 [INFO] No UCFGs have been included for analysis.
07:04:31,220 [INFO] Sensor PythonSecuritySensor [security] (done) | time=4ms
07:04:31,221 [INFO] Sensor JsSecuritySensor [security]
07:04:31,221 [INFO] Reading type hierarchy from: /home/runner/work/enumerable4j/enumerable4j/target/sonar/ucfg2/js
07:04:31,222 [INFO] Read 0 type definitions
07:04:31,222 [INFO] Reading UCFGs from: /home/runner/work/enumerable4j/enumerable4j/target/sonar/ucfg2/js
07:04:31,223 [INFO] No UCFGs have been included for analysis.
07:04:31,223 [INFO] Sensor JsSecuritySensor [security] (done) | time=2ms
07:04:31,227 [INFO] ------------- Run sensors on project
07:04:31,290 [INFO] Sensor Zero Coverage Sensor
07:04:31,292 [INFO] Sensor Zero Coverage Sensor (done) | time=2ms
07:04:31,293 [INFO] Sensor Java CPD Block Indexer
07:04:31,346 [INFO] Sensor Java CPD Block Indexer (done) | time=53ms
07:04:31,353 [INFO] SCM Publisher SCM provider for this project is: git
07:04:31,355 [INFO] SCM Publisher 3 source files to be analyzed
07:04:31,553 [INFO] SCM Publisher 3/3 source files have been analyzed (done) | time=189ms
07:04:31,557 [INFO] CPD Executor 2 files had no CPD blocks
07:04:31,557 [INFO] CPD Executor Calculating CPD for 1 file
07:04:31,564 [INFO] CPD Executor CPD calculation finished (done) | time=6ms
07:04:31,674 [INFO] SCM writing changed lines
07:04:31,707 [INFO] SCM writing changed lines (done) | time=33ms
07:04:32,585 [INFO] Analysis report generated in 1019ms, dir size=208 KB
07:04:32,606 [INFO] Analysis report compressed in 21ms, zip size=48 KB
07:04:32,916 [INFO] ------------------------------------------------------------------------
07:04:32,916 [INFO] BUILD FAILURE
07:04:32,917 [INFO] ------------------------------------------------------------------------
07:04:32,919 [INFO] Total time:  38.161 s
07:04:32,919 [INFO] Finished at: 2021-03-12T07:04:32Z
07:04:32,919 [INFO] ------------------------------------------------------------------------
Error: 2,920 [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.8.0.2131:sonar (default-cli) on project enumerable4j: You're not authorized to run analysis. Please contact the project administrator. -> [Help 1]
Error: 2,921 [ERROR] 
Error: 2,922 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
Error: 2,922 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
Error: 2,922 [ERROR] 
Error: 2,923 [ERROR] For more information about the errors and possible solutions, please read the following articles:
Error: 2,923 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Error: Process completed with exit code 1.

Root cause

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.