public void write( PrintWriter writer, Janitor janitor ) { if (owner instanceof SourceUnit) { SourceUnit source = (SourceUnit) owner; String name = source.getName(); int line = context.getStartLine(); int column = context.getStartColumn(); String sample = source.getSample( line, column, janitor ); if( sample != null ) { writer.println( source.getSample(line, column, janitor) ); } writer.println( name + ": " + line + ": " + this.message ); writer.println(""); } else { writer.println( "<No Relevant Source>: " + this.message ); writer.println(""); } }
if( getStartLine() > -1 ) writer.print( " at " + getStartLine() + ":" + getStartColumn() );
public void write( PrintWriter writer, Janitor janitor ) { if (owner instanceof SourceUnit) { SourceUnit source = (SourceUnit) owner; String name = source.getName(); int line = context.getStartLine(); int column = context.getStartColumn(); String sample = source.getSample( line, column, janitor ); if( sample != null ) { writer.println( source.getSample(line, column, janitor) ); } writer.println( name + ": " + line + ": " + this.message ); writer.println(""); } else { writer.println( "<No Relevant Source>: " + this.message ); writer.println(""); } }
public void write( PrintWriter writer, Janitor janitor ) { if (owner instanceof SourceUnit) { SourceUnit source = (SourceUnit) owner; String name = source.getName(); int line = context.getStartLine(); int column = context.getStartColumn(); String sample = source.getSample( line, column, janitor ); if( sample != null ) { writer.println( source.getSample(line, column, janitor) ); } writer.println( name + ": " + line + ": " + this.message ); writer.println(""); } else { writer.println( "<No Relevant Source>: " + this.message ); writer.println(""); } }
public void write( PrintWriter writer, Janitor janitor ) { SourceUnit source = (SourceUnit) owner; String name = source.getName(); int line = context.getStartLine(); int column = context.getStartColumn(); String sample = source.getSample( line, column, janitor ); if( sample != null ) { writer.println( source.getSample(line, column, janitor) ); } writer.println( name + ": " + line + ": " + this.message ); writer.println(""); }
public void write( PrintWriter writer, Janitor janitor ) { if (owner instanceof SourceUnit) { SourceUnit source = (SourceUnit) owner; String name = source.getName(); int line = context.getStartLine(); int column = context.getStartColumn(); String sample = source.getSample( line, column, janitor ); if( sample != null ) { writer.println( source.getSample(line, column, janitor) ); } writer.println( name + ": " + line + ": " + this.message ); writer.println(""); } else { writer.println( "<No Relevant Source>: " + this.message ); writer.println(""); } }
if( getStartLine() > -1 ) writer.print( " at " + getStartLine() + ":" + getStartColumn() );
if( getStartLine() > -1 ) writer.print( " at " + getStartLine() + ":" + getStartColumn() );
if( getStartLine() > -1 ) writer.print( " at " + getStartLine() + ":" + getStartColumn() );
if( getStartLine() > -1 ) writer.print( " at " + getStartLine() + ":" + getStartColumn() );