public static TestDiagnosticLine fromDiagnosticFileLine(String diagnosticLine){
  final String trimmedLine=diagnosticLine.trim();
  if (trimmedLine.startsWith("#") || trimmedLine.isEmpty()) {
    return new TestDiagnosticLine("",-1,diagnosticLine,EMPTY);
  }
  TestDiagnostic diagnostic=fromDiagnosticFileString(diagnosticLine);
  return new TestDiagnosticLine("",diagnostic.getLineNumber(),diagnosticLine,Arrays.asList(diagnostic));
}

public static TestDiagnosticLine fromDiagnosticFileLine ( String diagnosticLine ) { final String trimmedLine = diagnosticLine . trim ( ) ; if ( trimmedLine . startsWith ( "#" ) || trimmedLine . isEmpty ( ) ) { return new TestDiagnosticLine ( "" , - 1 , diagnosticLine , EMPTY ) ; } TestDiagnostic diagnostic = fromDiagnosticFileString ( diagnosticLine ) ; return new TestDiagnosticLine ( "" , diagnostic . getLineNumber ( ) , diagnosticLine , Arrays . asList ( diagnostic ) ) ; }
convert a line in a diagnosticfile to a testdiagnosticline
