Uploaded image for project: 'RAML Module Builder'
  1. RAML Module Builder
  2. RMB-2 RMB: unit tests and code cleanup
  3. RMB-44

use generics for PostgresClient.get(...) and .join(...)

    XMLWordPrintable

Details

    • CP: Non-roadmap backlog

    Description

      The variable clazz and the Object in replyHandler are of the same type, for example in:

      get(String table, Class<?> clazz, String filter, boolean returnCount, boolean setId, Handler<AsyncResult<Object[]>> replyHandler)

      This can explicitly declared using generics: https://docs.oracle.com/javase/tutorial/extra/generics/literals.html
      That way the caller no longer needs to convert the AsyncResult's Object into the actual type.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                julianladisch Julian Ladisch
                julianladisch Julian Ladisch
                Adam Dickmeiss Adam Dickmeiss
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases