XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • 3.13.0
    • lang.*
    • None

    Description

      The implementation of the methods asRunnable(), asConsumer(), asCallable(), asBiConsumer() etc. is redundant and copy-paste. They are implemented with the structure (example from asRunnable():

      return () -> {
                  try {
                      pRunnable.run();
                  } catch (Throwable t) {
                      throw rethrow(t);
                  }
              };
      

      This try-catch structure is already implemented in the class and can be used here simplifying the method to

      return () -> run(pRunnable);
      

      Also, the tests for asPredicate() and asBiPredicate() are missing.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              peter@verhas.com Peter Verhas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified