id
int64 1
366
| bug_ctx
stringlengths 72
994
| fixed
stringlengths 8
123
|
---|---|---|
223 |
[CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { [BUGGY] reader = ReaderFactory.newReader(inputFile, inputEncoding); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
|
244 |
[CONTEXT] if (inputEncoding != null) { if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { reader = ReaderFactory.newReader(inputFile, inputEncoding); } } else { [BUGGY] reader = ReaderFactory.newPlatformReader(inputFile); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
reader = ReaderFactory.newPlatformReader ( inputFile ) ;
|
200 |
[CONTEXT] private void parse(File inputFile, String inputEncoding, DoxiaFormat parserFormat, OutputFileWrapper output) throws ConverterException, UnsupportedFormatException { [BUGGY] parse(inputFile, inputEncoding, parserFormat, output, null); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output [VARIABLES] boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat PlexusContainer plexus String extension firstElement firstTag inputEncoding roleHint Logger LOGGER File inputFile OutputFileWrapper output
|
parse ( inputFile, inputEncoding, parserFormat, output, null ) ;
|
286 |
[CONTEXT] [BUGGY] private final String roleHint; [CLASS] DefaultConverter DoxiaFormat [VARIABLES]
|
private final String roleHint;
|
42 |
[CONTEXT] public static InputFileWrapper valueOf(String absolutePath, DefaultConverter.DoxiaFormat format, String charsetName) throws UnsupportedEncodingException, FileNotFoundException { [BUGGY] return new InputFileWrapper(absolutePath, format, charsetName); } [CLASS] InputFileWrapper [METHOD] valueOf [RETURN_TYPE] InputFileWrapper String absolutePath DoxiaFormat format String charsetName [VARIABLES] String absolutePath charsetName boolean DoxiaFormat format long serialVersionUID
|
return new InputFileWrapper ( absolutePath, format, charsetName ) ;
|
218 |
[CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { [BUGGY] reader = ReaderFactory.newReader(inputFile, inputEncoding); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
|
96 |
[CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } [BUGGY] if (!super.equals(o)) { [BUGGY] return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); } [CLASS] AbstractFileWrapper [METHOD] equals [RETURN_TYPE] boolean Object o [VARIABLES] Object o String AUTO_ENCODING absolutePath encoding boolean File file filetoset AbstractFileWrapper that
|
if ( !super.equals ( o ) ) { return false;
|
40 |
[CONTEXT] public static InputFileWrapper valueOf(String absolutePath, DefaultConverter.DoxiaFormat format, String charsetName) throws UnsupportedEncodingException, FileNotFoundException { [BUGGY] return new InputFileWrapper(absolutePath, format, charsetName); } [CLASS] InputFileWrapper [METHOD] valueOf [RETURN_TYPE] InputFileWrapper String absolutePath DoxiaFormat format String charsetName [VARIABLES] String absolutePath charsetName boolean DoxiaFormat format long serialVersionUID
|
return new InputFileWrapper ( absolutePath, format, charsetName ) ;
|
51 |
[CONTEXT] private OutputStreamWrapper(OutputStream out, String format, String encoding) { [BUGGY] this.format = DefaultConverter.DoxiaFormat.valueOf(format.toUpperCase()); this.out = out; this.encoding = encoding; } [CLASS] OutputStreamWrapper [METHOD] <init> [RETURN_TYPE] String) OutputStream out String format String encoding [VARIABLES] String encoding format boolean DoxiaFormat format long serialVersionUID OutputStream out
|
this.format = DefaultConverter.DoxiaFormat.valueOf ( format.toUpperCase ( ) ) ;
|
156 |
[CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { [BUGGY] if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { return format; } } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f
|
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
|
216 |
[CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { [BUGGY] reader = ReaderFactory.newReader(inputFile, inputEncoding); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
|
164 |
[CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { [BUGGY] if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { return format; } } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f
|
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
|
77 |
[CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } [BUGGY] if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); } [CLASS] AbstractFileWrapper [METHOD] equals [RETURN_TYPE] boolean Object o [VARIABLES] Object o String AUTO_ENCODING absolutePath encoding boolean File file filetoset AbstractFileWrapper that
|
if ( o == null || getClass ( ) != o.getClass ( ) ) {
|
255 |
[CONTEXT] if (StringUtils.isEmpty(output.getEncoding()) || output.getEncoding().equals(OutputFileWrapper.AUTO_ENCODING)) { outputEncoding = inputEncoding; } else { [BUGGY] outputEncoding = output.getEncoding(); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
outputEncoding = output.getEncoding ( ) ;
|
28 |
[CONTEXT] public static OutputFileWrapper valueOf( String absolutePath, DefaultConverter.DoxiaFormat format, String charsetName) throws UnsupportedEncodingException { [BUGGY] return new OutputFileWrapper(absolutePath, format, charsetName); } [CLASS] OutputFileWrapper [METHOD] valueOf [RETURN_TYPE] OutputFileWrapper String absolutePath DoxiaFormat format String charsetName [VARIABLES] String absolutePath charsetName boolean DoxiaFormat format long serialVersionUID
|
return new OutputFileWrapper ( absolutePath, format, charsetName ) ;
|
130 |
[CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { this.roleHint = roleHint; [BUGGY] this.extension = extension; [BUGGY] this.firstElement = firstElement; this.hasParser = hasParser; this.hasSink = hasSink; } [CLASS] DefaultConverter DoxiaFormat [METHOD] <init> [RETURN_TYPE] String,boolean,boolean) String roleHint String extension String firstElement boolean hasParser boolean hasSink [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER
|
this.extension = extension; this.firstElement = firstElement;
|
46 |
[CONTEXT] public DefaultConverter.DoxiaFormat getFormat() { [BUGGY] return format; [BUGGY] } [CLASS] InputFileWrapper [METHOD] getFormat [RETURN_TYPE] DoxiaFormat [VARIABLES] DoxiaFormat format long serialVersionUID boolean
|
return format; }
|
196 |
[CONTEXT] private void parse(File inputFile, String inputEncoding, DoxiaFormat parserFormat, OutputFileWrapper output) throws ConverterException, UnsupportedFormatException { [BUGGY] parse(inputFile, inputEncoding, parserFormat, output, null); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output [VARIABLES] boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat PlexusContainer plexus String extension firstElement firstTag inputEncoding roleHint Logger LOGGER File inputFile OutputFileWrapper output
|
parse ( inputFile, inputEncoding, parserFormat, output, null ) ;
|
129 |
[CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { this.roleHint = roleHint; [BUGGY] this.extension = extension; this.firstElement = firstElement; this.hasParser = hasParser; this.hasSink = hasSink; } [CLASS] DefaultConverter DoxiaFormat [METHOD] <init> [RETURN_TYPE] String,boolean,boolean) String roleHint String extension String firstElement boolean hasParser boolean hasSink [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER
|
this.extension = extension;
|
68 |
[CONTEXT] public boolean equals(Object o) { [BUGGY] if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); } [CLASS] AbstractFileWrapper [METHOD] equals [RETURN_TYPE] boolean Object o [VARIABLES] Object o String AUTO_ENCODING absolutePath encoding boolean File file filetoset AbstractFileWrapper that
|
if ( this == o ) {
|
222 |
[CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { [BUGGY] reader = ReaderFactory.newReader(inputFile, inputEncoding); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
|
238 |
[CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { [BUGGY] reader = ReaderFactory.newReader(inputFile, inputEncoding); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
|
1 |
[CONTEXT] private static final Options OPTIONS; [CLASS] CLIManager [VARIABLES]
|
private static final String EOL = System.lineSeparator ( ) ;
|
307 |
[CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { this.roleHint = roleHint; this.extension = extension; [BUGGY] this.firstElement = firstElement; this.hasParser = hasParser; this.hasSink = hasSink; } [CLASS] DefaultConverter DoxiaFormat [METHOD] <init> [RETURN_TYPE] String,boolean,boolean) String roleHint String extension String firstElement boolean hasParser boolean hasSink [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER
|
this.firstElement = firstElement;
|
254 |
[CONTEXT] if (StringUtils.isEmpty(output.getEncoding()) || output.getEncoding().equals(OutputFileWrapper.AUTO_ENCODING)) { outputEncoding = inputEncoding; } else { [BUGGY] outputEncoding = output.getEncoding(); [BUGGY] } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
outputEncoding = output.getEncoding ( ) ; }
|
350 |
[CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { [BUGGY] if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { [BUGGY] return format; } } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f
|
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) { return format;
|
76 |
[CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } [BUGGY] if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); } [CLASS] AbstractFileWrapper [METHOD] equals [RETURN_TYPE] boolean Object o [VARIABLES] Object o String AUTO_ENCODING absolutePath encoding boolean File file filetoset AbstractFileWrapper that
|
if ( o == null || getClass ( ) != o.getClass ( ) ) {
|
314 |
[CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { this.roleHint = roleHint; this.extension = extension; this.firstElement = firstElement; this.hasParser = hasParser; [BUGGY] this.hasSink = hasSink; } [CLASS] DefaultConverter DoxiaFormat [METHOD] <init> [RETURN_TYPE] String,boolean,boolean) String roleHint String extension String firstElement boolean hasParser boolean hasSink [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER
|
this.hasSink = hasSink;
|
292 |
[CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { [BUGGY] this(roleHint, extension, null, hasParser, hasSink); } [CLASS] DefaultConverter DoxiaFormat [METHOD] <init> [RETURN_TYPE] String,boolean,boolean) String roleHint String extension boolean hasParser boolean hasSink [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER
|
this ( roleHint, extension, null, hasParser, hasSink ) ;
|
165 |
[CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { [BUGGY] if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { return format; } } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f
|
[Delete]
|
197 |
[CONTEXT] private void parse(File inputFile, String inputEncoding, DoxiaFormat parserFormat, OutputFileWrapper output) throws ConverterException, UnsupportedFormatException { [BUGGY] parse(inputFile, inputEncoding, parserFormat, output, null); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output [VARIABLES] boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat PlexusContainer plexus String extension firstElement firstTag inputEncoding roleHint Logger LOGGER File inputFile OutputFileWrapper output
|
parse ( inputFile, inputEncoding, parserFormat, output, null ) ;
|
69 |
[CONTEXT] public boolean equals(Object o) { [BUGGY] if (this == o) { [BUGGY] return true; [BUGGY] } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); } [CLASS] AbstractFileWrapper [METHOD] equals [RETURN_TYPE] boolean Object o [VARIABLES] Object o String AUTO_ENCODING absolutePath encoding boolean File file filetoset AbstractFileWrapper that
|
if ( this == o ) { return true; }
|
193 |
[CONTEXT] private void parse(File inputFile, String inputEncoding, DoxiaFormat parserFormat, OutputFileWrapper output) throws ConverterException, UnsupportedFormatException { [BUGGY] parse(inputFile, inputEncoding, parserFormat, output, null); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output [VARIABLES] boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat PlexusContainer plexus String extension firstElement firstTag inputEncoding roleHint Logger LOGGER File inputFile OutputFileWrapper output
|
parse ( inputFile, inputEncoding, parserFormat, output, null ) ;
|
278 |
[CONTEXT] private void stopPlexusContainer() { if (plexus == null) { return; } [BUGGY] plexus.dispose(); [BUGGY] plexus = null; } [CLASS] DefaultConverter DoxiaFormat [METHOD] stopPlexusContainer [RETURN_TYPE] void [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag inputEncoding outputEncoding roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat PlexusContainer plexus Logger LOGGER
|
plexus.dispose ( ) ; plexus = null;
|
227 |
[CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { [BUGGY] reader = ReaderFactory.newReader(inputFile, inputEncoding); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
|
239 |
[CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { [BUGGY] reader = ReaderFactory.newReader(inputFile, inputEncoding); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
|
30 |
[CONTEXT] [BUGGY] static final long serialVersionUID = 6510443036267371188L; [CLASS] InputFileWrapper [VARIABLES]
|
static final long serialVersionUID = 6510443036267371188L;
|
185 |
[CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { [BUGGY] if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { return format; } } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f
|
[Delete]
|
252 |
[CONTEXT] if (StringUtils.isEmpty(output.getEncoding()) || output.getEncoding().equals(OutputFileWrapper.AUTO_ENCODING)) { outputEncoding = inputEncoding; } else { [BUGGY] outputEncoding = output.getEncoding(); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
outputEncoding = output.getEncoding ( ) ;
|
3 |
[CONTEXT] [BUGGY] static final long serialVersionUID = 3260213754615748766L; [CLASS] InputReaderWrapper [VARIABLES]
|
static final long serialVersionUID = 3260213754615748766L;
|
221 |
[CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { [BUGGY] reader = ReaderFactory.newReader(inputFile, inputEncoding); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
|
142 |
[CONTEXT] public boolean hasParser() { [BUGGY] return hasParser; } [CLASS] DefaultConverter DoxiaFormat [METHOD] hasParser [RETURN_TYPE] boolean [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER
|
return hasParser;
|
65 |
[CONTEXT] void setFile(File file) { [BUGGY] this.file = file; } [CLASS] AbstractFileWrapper [METHOD] setFile [RETURN_TYPE] void File file [VARIABLES] File file filetoset String AUTO_ENCODING absolutePath encoding boolean
|
this.file = file;
|
269 |
[CONTEXT] private void stopPlexusContainer() { [BUGGY] if (plexus == null) { return; } plexus.dispose(); plexus = null; } [CLASS] DefaultConverter DoxiaFormat [METHOD] stopPlexusContainer [RETURN_TYPE] void [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag inputEncoding outputEncoding roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat PlexusContainer plexus Logger LOGGER
|
if ( plexus == null ) {
|
304 |
[CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { this.roleHint = roleHint; [BUGGY] this.extension = extension; this.firstElement = firstElement; this.hasParser = hasParser; this.hasSink = hasSink; } [CLASS] DefaultConverter DoxiaFormat [METHOD] <init> [RETURN_TYPE] String,boolean,boolean) String roleHint String extension String firstElement boolean hasParser boolean hasSink [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER
|
this.extension = extension;
|
250 |
[CONTEXT] if (StringUtils.isEmpty(output.getEncoding()) || output.getEncoding().equals(OutputFileWrapper.AUTO_ENCODING)) { outputEncoding = inputEncoding; } else { [BUGGY] outputEncoding = output.getEncoding(); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
outputEncoding = output.getEncoding ( ) ;
|
98 |
[CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; [BUGGY] return Objects.equals(getFile(), that.getFile()); } [CLASS] AbstractFileWrapper [METHOD] equals [RETURN_TYPE] boolean Object o [VARIABLES] Object o String AUTO_ENCODING absolutePath encoding boolean File file filetoset AbstractFileWrapper that
|
return Objects.equals ( getFile ( ) , that.getFile ( ) ) ;
|
322 |
[CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { [BUGGY] if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { return format; } } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f
|
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
|
281 |
[CONTEXT] private void stopPlexusContainer() { if (plexus == null) { return; } [BUGGY] plexus.dispose(); plexus = null; } [CLASS] DefaultConverter DoxiaFormat [METHOD] stopPlexusContainer [RETURN_TYPE] void [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag inputEncoding outputEncoding roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat PlexusContainer plexus Logger LOGGER
|
plexus.dispose ( ) ;
|
153 |
[CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { [BUGGY] if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { return format; } } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f
|
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
|
291 |
[CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { [BUGGY] this(roleHint, extension, null, hasParser, hasSink); } [CLASS] DefaultConverter DoxiaFormat [METHOD] <init> [RETURN_TYPE] String,boolean,boolean) String roleHint String extension boolean hasParser boolean hasSink [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER
|
this ( roleHint, extension, null, hasParser, hasSink ) ;
|
343 |
[CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { [BUGGY] if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { return format; } } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f
|
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
|
272 |
[CONTEXT] private void stopPlexusContainer() { [BUGGY] if (plexus == null) { return; } plexus.dispose(); plexus = null; } [CLASS] DefaultConverter DoxiaFormat [METHOD] stopPlexusContainer [RETURN_TYPE] void [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag inputEncoding outputEncoding roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat PlexusContainer plexus Logger LOGGER
|
if ( plexus == null ) {
|
305 |
[CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { this.roleHint = roleHint; [BUGGY] this.extension = extension; [BUGGY] this.firstElement = firstElement; [BUGGY] this.hasParser = hasParser; this.hasSink = hasSink; } [CLASS] DefaultConverter DoxiaFormat [METHOD] <init> [RETURN_TYPE] String,boolean,boolean) String roleHint String extension String firstElement boolean hasParser boolean hasSink [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER
|
this.extension = extension; this.firstElement = firstElement; this.hasParser = hasParser;
|
161 |
[CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { [BUGGY] return format; [BUGGY] } [BUGGY] } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f
|
return format; } }
|
79 |
[CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } [BUGGY] if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); } [CLASS] AbstractFileWrapper [METHOD] equals [RETURN_TYPE] boolean Object o [VARIABLES] Object o String AUTO_ENCODING absolutePath encoding boolean File file filetoset AbstractFileWrapper that
|
if ( o == null || getClass ( ) != o.getClass ( ) ) {
|
57 |
[CONTEXT] private OutputStreamWrapper(OutputStream out, String format, String encoding) { this.format = DefaultConverter.DoxiaFormat.valueOf(format.toUpperCase()); [BUGGY] this.out = out; [BUGGY] this.encoding = encoding; } [CLASS] OutputStreamWrapper [METHOD] <init> [RETURN_TYPE] String) OutputStream out String format String encoding [VARIABLES] String encoding format boolean DoxiaFormat format long serialVersionUID OutputStream out
|
this.out = out; this.encoding = encoding;
|
25 |
[CONTEXT] public static OutputFileWrapper valueOf( String absolutePath, DefaultConverter.DoxiaFormat format, String charsetName) throws UnsupportedEncodingException { [BUGGY] return new OutputFileWrapper(absolutePath, format, charsetName); } [CLASS] OutputFileWrapper [METHOD] valueOf [RETURN_TYPE] OutputFileWrapper String absolutePath DoxiaFormat format String charsetName [VARIABLES] String absolutePath charsetName boolean DoxiaFormat format long serialVersionUID
|
return new OutputFileWrapper ( absolutePath, format, charsetName ) ;
|
47 |
[CONTEXT] [BUGGY] static final long serialVersionUID = 3329037527245430610L; [CLASS] OutputStreamWrapper [VARIABLES]
|
static final long serialVersionUID = 3329037527245430610L;
|
253 |
[CONTEXT] if (StringUtils.isEmpty(output.getEncoding()) || output.getEncoding().equals(OutputFileWrapper.AUTO_ENCODING)) { outputEncoding = inputEncoding; } else { [BUGGY] outputEncoding = output.getEncoding(); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
outputEncoding = output.getEncoding ( ) ;
|
71 |
[CONTEXT] public boolean equals(Object o) { [BUGGY] if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); } [CLASS] AbstractFileWrapper [METHOD] equals [RETURN_TYPE] boolean Object o [VARIABLES] Object o String AUTO_ENCODING absolutePath encoding boolean File file filetoset AbstractFileWrapper that
|
[Delete]
|
285 |
[CONTEXT] private void stopPlexusContainer() { if (plexus == null) { return; } plexus.dispose(); [BUGGY] plexus = null; } [CLASS] DefaultConverter DoxiaFormat [METHOD] stopPlexusContainer [RETURN_TYPE] void [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag inputEncoding outputEncoding roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat PlexusContainer plexus Logger LOGGER
|
plexus = null;
|
312 |
[CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { this.roleHint = roleHint; this.extension = extension; this.firstElement = firstElement; this.hasParser = hasParser; [BUGGY] this.hasSink = hasSink; [BUGGY] } [CLASS] DefaultConverter DoxiaFormat [METHOD] <init> [RETURN_TYPE] String,boolean,boolean) String roleHint String extension String firstElement boolean hasParser boolean hasSink [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER
|
this.hasSink = hasSink; }
|
205 |
[CONTEXT] if (inputEncoding != null) { if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { reader = ReaderFactory.newReader(inputFile, inputEncoding); } } else { [BUGGY] reader = ReaderFactory.newPlatformReader(inputFile); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
reader = ReaderFactory.newPlatformReader ( inputFile ) ;
|
220 |
[CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { [BUGGY] reader = ReaderFactory.newReader(inputFile, inputEncoding); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
|
135 |
[CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { this.roleHint = roleHint; this.extension = extension; this.firstElement = firstElement; [BUGGY] this.hasParser = hasParser; this.hasSink = hasSink; } [CLASS] DefaultConverter DoxiaFormat [METHOD] <init> [RETURN_TYPE] String,boolean,boolean) String roleHint String extension String firstElement boolean hasParser boolean hasSink [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER
|
this.hasParser = hasParser;
|
127 |
[CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { [BUGGY] this.roleHint = roleHint; this.extension = extension; this.firstElement = firstElement; this.hasParser = hasParser; this.hasSink = hasSink; } [CLASS] DefaultConverter DoxiaFormat [METHOD] <init> [RETURN_TYPE] String,boolean,boolean) String roleHint String extension String firstElement boolean hasParser boolean hasSink [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER
|
this.roleHint = roleHint;
|
360 |
[CONTEXT] public ConverterException(String message) { [BUGGY] super(message); } [CLASS] ConverterException [METHOD] <init> [RETURN_TYPE] String) String message [VARIABLES] long serialVersionUID String message boolean
|
super ( message ) ;
|
321 |
[CONTEXT] public boolean isXml() { [BUGGY] return firstElement != null; [BUGGY] } [CLASS] DefaultConverter DoxiaFormat [METHOD] isXml [RETURN_TYPE] boolean [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER
|
return firstElement != null; }
|
74 |
[CONTEXT] public boolean equals(Object o) { if (this == o) { [BUGGY] return true; [BUGGY] } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); } [CLASS] AbstractFileWrapper [METHOD] equals [RETURN_TYPE] boolean Object o [VARIABLES] Object o String AUTO_ENCODING absolutePath encoding boolean File file filetoset AbstractFileWrapper that
|
return true; }
|
235 |
[CONTEXT] if (inputEncoding != null) { if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { reader = ReaderFactory.newReader(inputFile, inputEncoding); } } else { [BUGGY] reader = ReaderFactory.newPlatformReader(inputFile); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
reader = ReaderFactory.newPlatformReader ( inputFile ) ;
|
203 |
[CONTEXT] if (inputEncoding != null) { if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { reader = ReaderFactory.newReader(inputFile, inputEncoding); } } else { [BUGGY] reader = ReaderFactory.newPlatformReader(inputFile); [BUGGY] } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
reader = ReaderFactory.newPlatformReader ( inputFile ) ; }
|
256 |
[CONTEXT] if (StringUtils.isEmpty(output.getEncoding()) || output.getEncoding().equals(OutputFileWrapper.AUTO_ENCODING)) { outputEncoding = inputEncoding; } else { [BUGGY] outputEncoding = output.getEncoding(); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
outputEncoding = output.getEncoding ( ) ;
|
276 |
[CONTEXT] private void stopPlexusContainer() { [BUGGY] if (plexus == null) { return; } plexus.dispose(); plexus = null; } [CLASS] DefaultConverter DoxiaFormat [METHOD] stopPlexusContainer [RETURN_TYPE] void [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag inputEncoding outputEncoding roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat PlexusContainer plexus Logger LOGGER
|
[Delete]
|
342 |
[CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { [BUGGY] if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { return format; } } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f
|
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
|
109 |
[CONTEXT] private final String extension; [CLASS] DefaultConverter DoxiaFormat [VARIABLES]
|
private final String firstElement;
|
34 |
[CONTEXT] public static InputFileWrapper valueOf(String absolutePath, DefaultConverter.DoxiaFormat format) throws UnsupportedEncodingException, FileNotFoundException { [BUGGY] return valueOf(absolutePath, format, WriterFactory.UTF_8); } [CLASS] InputFileWrapper [METHOD] valueOf [RETURN_TYPE] InputFileWrapper String absolutePath DoxiaFormat format [VARIABLES] String absolutePath boolean DoxiaFormat format long serialVersionUID
|
return valueOf ( absolutePath, format, WriterFactory.UTF_8 ) ;
|
138 |
[CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { this.roleHint = roleHint; this.extension = extension; this.firstElement = firstElement; this.hasParser = hasParser; [BUGGY] this.hasSink = hasSink; } [CLASS] DefaultConverter DoxiaFormat [METHOD] <init> [RETURN_TYPE] String,boolean,boolean) String roleHint String extension String firstElement boolean hasParser boolean hasSink [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER
|
this.hasSink = hasSink;
|
206 |
[CONTEXT] if (inputEncoding != null) { if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { reader = ReaderFactory.newReader(inputFile, inputEncoding); } } else { [BUGGY] reader = ReaderFactory.newPlatformReader(inputFile); [BUGGY] } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
reader = ReaderFactory.newPlatformReader ( inputFile ) ; } } catch ( IOException e ) {
|
162 |
[CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { [BUGGY] return format; } } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f
|
return format;
|
353 |
[CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { [BUGGY] if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { return format; } } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f
|
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
|
118 |
[CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { [BUGGY] this(roleHint, extension, null, hasParser, hasSink); } [CLASS] DefaultConverter DoxiaFormat [METHOD] <init> [RETURN_TYPE] String,boolean,boolean) String roleHint String extension boolean hasParser boolean hasSink [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER
|
this ( roleHint, extension, null, hasParser, hasSink ) ;
|
29 |
[CONTEXT] [BUGGY] static final long serialVersionUID = 6510443036267371188L; [CLASS] InputFileWrapper [VARIABLES]
|
static final long serialVersionUID = 6510443036267371188L;
|
167 |
[CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { [BUGGY] if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { return format; } } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f
|
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
|
340 |
[CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { [BUGGY] if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { return format; } } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f
|
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
|
139 |
[CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { this.roleHint = roleHint; this.extension = extension; this.firstElement = firstElement; this.hasParser = hasParser; [BUGGY] this.hasSink = hasSink; } [CLASS] DefaultConverter DoxiaFormat [METHOD] <init> [RETURN_TYPE] String,boolean,boolean) String roleHint String extension String firstElement boolean hasParser boolean hasSink [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER
|
this.hasSink = hasSink;
|
338 |
[CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { [BUGGY] if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { return format; } } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f
|
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
|
237 |
[CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { [BUGGY] reader = ReaderFactory.newReader(inputFile, inputEncoding); [BUGGY] } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ; } } else {
|
298 |
[CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { [BUGGY] this(roleHint, extension, null, hasParser, hasSink); } [CLASS] DefaultConverter DoxiaFormat [METHOD] <init> [RETURN_TYPE] String,boolean,boolean) String roleHint String extension boolean hasParser boolean hasSink [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER
|
this ( roleHint, extension, null, hasParser, hasSink ) ;
|
362 |
[CONTEXT] public ConverterException(String message, Throwable cause) { [BUGGY] super(message, cause); } [CLASS] ConverterException [METHOD] <init> [RETURN_TYPE] Throwable) String message Throwable cause [VARIABLES] Throwable cause String message boolean long serialVersionUID
|
super ( message, cause ) ;
|
274 |
[CONTEXT] private void stopPlexusContainer() { [BUGGY] if (plexus == null) { [BUGGY] return; [BUGGY] } plexus.dispose(); plexus = null; } [CLASS] DefaultConverter DoxiaFormat [METHOD] stopPlexusContainer [RETURN_TYPE] void [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag inputEncoding outputEncoding roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat PlexusContainer plexus Logger LOGGER
|
if ( plexus == null ) { return; }
|
88 |
[CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } [BUGGY] if (o == null || getClass() != o.getClass()) { [BUGGY] return false; [BUGGY] } if (!super.equals(o)) { return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); } [CLASS] AbstractFileWrapper [METHOD] equals [RETURN_TYPE] boolean Object o [VARIABLES] Object o String AUTO_ENCODING absolutePath encoding boolean File file filetoset AbstractFileWrapper that
|
if ( o == null || getClass ( ) != o.getClass ( ) ) { return false; }
|
37 |
[CONTEXT] public static InputFileWrapper valueOf(String absolutePath, DefaultConverter.DoxiaFormat format) throws UnsupportedEncodingException, FileNotFoundException { [BUGGY] return valueOf(absolutePath, format, WriterFactory.UTF_8); [BUGGY] } [CLASS] InputFileWrapper [METHOD] valueOf [RETURN_TYPE] InputFileWrapper String absolutePath DoxiaFormat format [VARIABLES] String absolutePath boolean DoxiaFormat format long serialVersionUID
|
return valueOf ( absolutePath, format, WriterFactory.UTF_8 ) ; }
|
137 |
[CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { this.roleHint = roleHint; this.extension = extension; this.firstElement = firstElement; [BUGGY] this.hasParser = hasParser; this.hasSink = hasSink; } [CLASS] DefaultConverter DoxiaFormat [METHOD] <init> [RETURN_TYPE] String,boolean,boolean) String roleHint String extension String firstElement boolean hasParser boolean hasSink [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER
|
this.hasParser = hasParser;
|
108 |
[CONTEXT] private final String roleHint; [CLASS] DefaultConverter DoxiaFormat [VARIABLES]
|
private final String extension;
|
182 |
[CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { [BUGGY] if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { return format; } } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f
|
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
|
190 |
[CONTEXT] private void parse(File inputFile, String inputEncoding, DoxiaFormat parserFormat, OutputFileWrapper output) throws ConverterException, UnsupportedFormatException { [BUGGY] parse(inputFile, inputEncoding, parserFormat, output, null); } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output [VARIABLES] boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat PlexusContainer plexus String extension firstElement firstTag inputEncoding roleHint Logger LOGGER File inputFile OutputFileWrapper output
|
parse ( inputFile, inputEncoding, parserFormat, output, null ) ;
|
84 |
[CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } [BUGGY] if (o == null || getClass() != o.getClass()) { [BUGGY] return false; [BUGGY] } if (!super.equals(o)) { return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); } [CLASS] AbstractFileWrapper [METHOD] equals [RETURN_TYPE] boolean Object o [VARIABLES] Object o String AUTO_ENCODING absolutePath encoding boolean File file filetoset AbstractFileWrapper that
|
if ( o == null || getClass ( ) != o.getClass ( ) ) { return false; }
|
187 |
[CONTEXT] public void setFormatOutput(boolean formatOutput) { [BUGGY] this.formatOutput = formatOutput; } [CLASS] DefaultConverter DoxiaFormat [METHOD] setFormatOutput [RETURN_TYPE] void boolean formatOutput [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER
|
this.formatOutput = formatOutput;
|
233 |
[CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { [BUGGY] reader = ReaderFactory.newReader(inputFile, inputEncoding); [BUGGY] } [CLASS] DefaultConverter DoxiaFormat [METHOD] parse [RETURN_TYPE] void File inputFile String inputEncoding DoxiaFormat parserFormat OutputFileWrapper output File relativeOutputDirectory [VARIABLES] PlexusContainer plexus OutputStream out Reader r reader ComponentLookupException e String extension firstElement firstTag inputEncoding outputEncoding roleHint IOException e Logger LOGGER OutputFileWrapper output CharArrayWriter caw Parser parser boolean formatOutput hasParser hasSink DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format parserFormat Sink sink SinkFactory sinkFactory File inputFile outputDirectoryOrFile outputFile relativeOutputDirectory Writer w
|
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ; }
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.