id
int64 1
366
| bug_ctx
stringlengths 72
994
| fixed
stringlengths 8
123
|
---|---|---|
295 | [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 ) ; |
247 | [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 ) ; |
179 | [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; |
266 | [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 ( ) ; |
35 | [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 ) ; } |
279 | [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 ( ) ; |
356 | [CONTEXT] [BUGGY] static final long serialVersionUID = -5251213141888260575L; [CLASS] ConverterException [VARIABLES] | static final long serialVersionUID = -5251213141888260575L; |
209 | [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 ) ; |
320 | [CONTEXT] public boolean isXml() { [BUGGY] return firstElement != null; } [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; |
316 | [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; |
178 | [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; |
92 | [CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { 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 | [Delete] |
224 | [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 ) ; |
54 | [CONTEXT] private OutputStreamWrapper(OutputStream out, String format, String encoding) { [BUGGY] 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.format = DefaultConverter.DoxiaFormat.valueOf ( format.toUpperCase ( ) ) ; this.out = out; this.encoding = encoding; |
345 | [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; [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 | if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) { return format; } |
344 | [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 ( ) ) ) { |
66 | [CONTEXT] public String getEncoding() { [BUGGY] return encoding; } [CLASS] AbstractFileWrapper [METHOD] getEncoding [RETURN_TYPE] String [VARIABLES] File file filetoset String AUTO_ENCODING absolutePath encoding boolean | return encoding; |
107 | [CONTEXT] [BUGGY] private final String roleHint; [CLASS] DefaultConverter DoxiaFormat [VARIABLES] | private final String roleHint; |
144 | [CONTEXT] public boolean hasSink() { [BUGGY] return hasSink; } [CLASS] DefaultConverter DoxiaFormat [METHOD] hasSink [RETURN_TYPE] boolean [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER | return hasSink; |
75 | [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 ( ) ) { |
297 | [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 ) ; |
270 | [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 ) { |
248 | [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 ) ; } |
335 | [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; [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 | if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) { return format; } |
334 | [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 ( ) ) ) { |
73 | [CONTEXT] public boolean equals(Object o) { if (this == o) { [BUGGY] return true; [BUGGY] } [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; } if ( o == null || getClass ( ) != o.getClass ( ) ) { |
11 | [CONTEXT] [BUGGY] static final long serialVersionUID = 804499615902780116L; [CLASS] OutputFileWrapper [VARIABLES] | static final long serialVersionUID = 804499615902780116L; |
192 | [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 ) ; |
101 | [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 ( ) ) ; |
104 | [CONTEXT] public int hashCode() { [BUGGY] return Objects.hash(super.hashCode(), getFile()); } [CLASS] AbstractFileWrapper [METHOD] hashCode [RETURN_TYPE] int [VARIABLES] File file filetoset String AUTO_ENCODING absolutePath encoding boolean | return Objects.hash ( super.hashCode ( ) , getFile ( ) ) ; |
168 | [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 ( ) ) ) { |
148 | [CONTEXT] public boolean isXml() { [BUGGY] return firstElement != null; } [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; |
86 | [CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } 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 | return false; } |
264 | [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 ( ) ; |
121 | [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 ) ; |
348 | [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; } } |
311 | [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; |
214 | [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 { |
163 | [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] } } [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; } |
171 | [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 ( ) ) ) { |
81 | [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 ( ) ) { |
327 | [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; [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 | if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) { return format; } |
27 | [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 ) ; |
361 | [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 ) ; |
208 | [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 ) ; |
240 | [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 ) ; |
56 | [CONTEXT] private OutputStreamWrapper(OutputStream out, String format, String encoding) { this.format = DefaultConverter.DoxiaFormat.valueOf(format.toUpperCase()); [BUGGY] 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.out = out; |
271 | [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 ) { |
90 | [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; [BUGGY] } 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; } |
78 | [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 ( ) ) { |
67 | [CONTEXT] void setEncoding(String encoding) { [BUGGY] this.encoding = encoding; } [CLASS] AbstractFileWrapper [METHOD] setEncoding [RETURN_TYPE] void String encoding [VARIABLES] File file filetoset String AUTO_ENCODING absolutePath encoding boolean | this.encoding = encoding; |
26 | [CONTEXT] public static OutputFileWrapper valueOf( String absolutePath, DefaultConverter.DoxiaFormat format, String charsetName) throws UnsupportedEncodingException { [BUGGY] return new OutputFileWrapper(absolutePath, format, charsetName); [BUGGY] } [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 ) ; } } |
155 | [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 ( ) ) ) { |
339 | [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 ( ) ) ) { |
100 | [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 ( ) ) ; |
39 | [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 ) ; |
231 | [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 ) ; |
287 | [CONTEXT] private final String roleHint; [CLASS] DefaultConverter DoxiaFormat [VARIABLES] | private final String extension; |
213 | [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 ) ; |
159 | [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; [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 | if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) { return format; } |
183 | [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 ( ) ) ) { |
243 | [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 ) ; |
336 | [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] |
189 | [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 ) ; |
229 | [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 ) ; |
97 | [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; } [BUGGY] AbstractFileWrapper that = (AbstractFileWrapper) o; [BUGGY] return Objects.equals(getFile(), that.getFile()); [BUGGY] } [CLASS] AbstractFileWrapper [METHOD] equals [RETURN_TYPE] boolean Object o [VARIABLES] Object o String AUTO_ENCODING absolutePath encoding boolean File file filetoset AbstractFileWrapper that | AbstractFileWrapper that = ( AbstractFileWrapper ) o; return Objects.equals ( getFile ( ) , that.getFile ( ) ) ; } |
219 | [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 ) ; |
225 | [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 ) ; |
95 | [CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { [BUGGY] return false; [BUGGY] } 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 false; } |
147 | [CONTEXT] public boolean isXml() { [BUGGY] return firstElement != null; } [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; |
123 | [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 ) ; |
38 | [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 ) ; |
110 | [CONTEXT] private final String extension; [CLASS] DefaultConverter DoxiaFormat [VARIABLES] | private final String firstElement; |
20 | [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 ) ; |
89 | [CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { 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 ( !super.equals ( o ) ) { |
301 | [CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { [BUGGY] 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.roleHint = roleHint; this.extension = extension; |
128 | [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; |
293 | [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 ) ; |
150 | [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 ( ) ) ) { |
140 | [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; |
325 | [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 ( ) ) ) { |
201 | [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 ) ; |
134 | [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; |
211 | [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 ) ; |
119 | [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 ) ; |
282 | [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 ( ) ; |
341 | [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 ( ) ) ) { |
191 | [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 ) ; |
241 | [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 ) ; |
366 | [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 ) ; |
188 | [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 ) ; |
212 | [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 ) ; |
12 | [CONTEXT] [BUGGY] static final long serialVersionUID = 804499615902780116L; [CLASS] OutputFileWrapper [VARIABLES] | static final long serialVersionUID = 804499615902780116L; |
246 | [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 ) ; } |
70 | [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; } |
323 | [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 ( ) ) ) { |
124 | [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 ) ; |
245 | [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 ) ; |
261 | [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 ( ) ; |
260 | [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 ( ) ; |
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
- Downloads last month
- 39