1 package org.incava.analysis; 2 3 import java.io.*; 4 import java.util.*; 5 import net.sourceforge.pmd.ast.Token; 6 7 8 11 public class TerseReport extends Report 12 { 13 18 public TerseReport(Writer writer) 19 { 20 super(writer); 21 } 22 23 28 public TerseReport(OutputStream os) 29 { 30 super(os); 31 } 32 33 39 public TerseReport(Writer writer, String source) 40 { 41 super(writer, source); 42 } 43 44 50 public TerseReport(Writer writer, File file) 51 { 52 super(writer, file); 53 } 54 55 61 public TerseReport(OutputStream os, String source) 62 { 63 super(os, source); 64 } 65 66 72 public TerseReport(OutputStream os, File file) 73 { 74 super(os, file); 75 } 76 77 87 protected String toString(Violation violation) 88 { 89 return (fileName + ":" + 90 violation.getBeginLine() + ":" + violation.getBeginColumn() + ":" + 91 violation.getEndLine() + ":" + violation.getEndColumn() + ": " + 92 violation.getMessage() + System.getProperty("line.separator")); 93 } 94 95 } 96 | Popular Tags |