XMLWordPrintable

Details

    • 8.0.0 - Beta3

    Description

      as Java 7 is required, we can replace:

      try(BufferedReader br = new BufferedReader(new FileReader(path))) {
          		
          	    StringBuilder sb = new StringBuilder();
          	    String line = br.readLine();
      
          	    while (line != null) {
          	        sb.append(line);
          	        sb.append(System.lineSeparator());
          	        line = br.readLine();
          	    }
          	    
          	    String everything = sb.toString();
          	    return everything;
          	}
      

      by

          	Path filePath = new File(path).toPath();
      	return new String(Files.readAllBytes(filePath), StandardCharsets.UTF_8);
      

      --> need to update locally embedded example
      --> need to update upstream archetype

      Attachments

        Activity

          People

            lheinema@redhat.com Lars Heinemann
            apupier@redhat.com Aurélien Pupier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: