Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8304697

syntactic sugar to add and short cut for the very useful constants

    XMLWordPrintable

Details

    • generic
    • generic

    Description

      A DESCRIPTION OF THE PROBLEM :
      please just add and short cut for the very usefull constant:

          /**
           * The system-dependent default name-separator character, represented as a
           * string for convenience. This string contains a single character, namely
           * {@link #separatorChar}.
           */
          public static final String separator = "" + separatorChar;
       

      helper for shorter urls on mobile screens 120 chars cap. is not long for big urls:

      import static java.io.File.separator;


          static final String sep = separator;




      api.get(studies + sep + studyId + sep + participants + sep + participantId + sep + results).then()
      api.get(studies + sep + studyId + sep + participants + sep + participantId + sep + results + sep + resultId).then()
      api.get(studies + sep + studyId + sep + participants + sep + participantId + sep + results + sep + status + sep + statusId).then()

      otherwise i always have to write the full name even tho even clear in this context so i build this short cut myself.

      thanks


      Attachments

        Activity

          People

            smarks Stuart Marks
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: