PMD 5.0.1 Report
2013-06-19 - 00:06:26


Summary

FilesTotalPriority 1Priority 2Priority 3Priority 4Priority 5
5578
0
5
73
0
0

org.crosswire.jsword.book.sword.ZVerseBackend

PrioBegin LineMethodDescription
3
371dumpIdxRaf Avoid printStackTrace(); use a logger call instead.
3
383dumpIdxRaf Avoid printStackTrace(); use a logger call instead.
3
421dumpCompRaf Avoid printStackTrace(); use a logger call instead.
3
433dumpCompRaf Avoid printStackTrace(); use a logger call instead.
Total number of violations for this class: 4

org.crosswire.jsword.bridge.BookInstaller

PrioBegin LineMethodDescription
3
280main Avoid printStackTrace(); use a logger call instead.
3
308main Avoid printStackTrace(); use a logger call instead.
3
323main Avoid printStackTrace(); use a logger call instead.
3
325main Avoid printStackTrace(); use a logger call instead.
Total number of violations for this class: 4

org.crosswire.jsword.book.sword.ConfigEntryTable

PrioBegin LineMethodDescription
3
425loadContents Prefer StringBuffer over += for concatenating strings
3
889 The field name indicates a constant but its modifiers do not
3
890 The field name indicates a constant but its modifiers do not
Total number of violations for this class: 3

org.crosswire.jsword.examples.APIExamples

PrioBegin LineMethodDescription
3
362installBook Avoid printStackTrace(); use a logger call instead.
3
395installBook Avoid printStackTrace(); use a logger call instead.
3
402installBook Avoid printStackTrace(); use a logger call instead.
Total number of violations for this class: 3

org.crosswire.common.diff.DiffCleanup

PrioBegin LineMethodDescription
3
103cleanupSemantic Avoid empty while statements
3
226cleanupEfficiency Avoid empty while statements
Total number of violations for this class: 2

org.crosswire.common.util.Languages

PrioBegin LineMethodDescription
3
68getName Avoid empty catch blocks
3
212 Avoid protected fields in a final class. Change to private or package access.
Total number of violations for this class: 2

org.crosswire.common.util.Logger

PrioBegin LineMethodDescription
2
646 Use of modifier volatile is not recommended.
2
647 Use of modifier volatile is not recommended.
Total number of violations for this class: 2

org.crosswire.common.util.NetUtil

PrioBegin LineMethodDescription
3
142makeDirectory These nested if statements could be combined
3
296getAsFile Do not add empty strings
Total number of violations for this class: 2

org.crosswire.jsword.book.OSISUtil

PrioBegin LineMethodDescription
3
1083rtfToOsis This call to String.startsWith can be rewritten using String.charAt(0)
3
1193 Avoid unused private fields such as 'robinsonsPattern'.
Total number of violations for this class: 2

org.crosswire.jsword.book.filter.gbf.GBFFilter

PrioBegin LineMethodDescription
3
69clone clone() method should be implemented only if implementing Cloneable interface
3
148parseTags Use opposite operator instead of the logic complement operator.
Total number of violations for this class: 2

org.crosswire.jsword.book.sword.RawLDBackend

PrioBegin LineMethodDescription
3
146get Avoid empty catch blocks
3
148get Avoid empty catch blocks
Total number of violations for this class: 2

org.crosswire.jsword.book.sword.state.OpenFileStateManager

PrioBegin LineMethodDescription
2
183 Use of modifier volatile is not recommended.
2
184 Use of modifier volatile is not recommended.
Total number of violations for this class: 2

org.crosswire.jsword.book.sword.state.ZLDBackendState

PrioBegin LineMethodDescription
3
145getLastUncompressed Returning 'lastUncompressed' may expose an internal array.
3
158setLastUncompressed The user-supplied array 'lastUncompressed' is stored directly.
Total number of violations for this class: 2

org.crosswire.jsword.book.sword.state.ZVerseBackendState

PrioBegin LineMethodDescription
3
184getLastUncompressed Returning 'lastUncompressed' may expose an internal array.
3
207setLastUncompressed The user-supplied array 'lastUncompressed' is stored directly.
Total number of violations for this class: 2

org.crosswire.jsword.bridge.BookIndexer

PrioBegin LineMethodDescription
3
156main Avoid printStackTrace(); use a logger call instead.
3
163main Avoid printStackTrace(); use a logger call instead.
Total number of violations for this class: 2

org.crosswire.jsword.bridge.BookLookup

PrioBegin LineMethodDescription
3
100main Avoid printStackTrace(); use a logger call instead.
3
103main Avoid printStackTrace(); use a logger call instead.
Total number of violations for this class: 2

org.crosswire.jsword.passage.AbstractKeyList

PrioBegin LineMethodDescription
3
223clone clone() method should be implemented only if implementing Cloneable interface
3
262 StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time).
Total number of violations for this class: 2

gnu.gpl.GPLMsg

PrioBegin LineMethodDescription
3
32 All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.
Total number of violations for this class: 1

gnu.lgpl.LGPLMsg

PrioBegin LineMethodDescription
3
32 All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.
Total number of violations for this class: 1

org.crosswire.common.util.CWClassLoader

PrioBegin LineMethodDescription
3
168adjustPackageSearch Prefer StringBuffer over += for concatenating strings
Total number of violations for this class: 1

org.crosswire.common.util.IOUtil

PrioBegin LineMethodDescription
3
77unpackZip These nested if statements could be combined
Total number of violations for this class: 1

org.crosswire.common.util.Reporter

PrioBegin LineMethodDescription
3
159fireCapture Substitute calls to size() == 0 (or size() != 0) with calls to isEmpty()
Total number of violations for this class: 1

org.crosswire.common.xml.SerializingContentHandler

PrioBegin LineMethodDescription
3
202 StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time).
Total number of violations for this class: 1

org.crosswire.common.xml.TransformingSAXEventProvider

PrioBegin LineMethodDescription
3
80getTemplateInfo These nested if statements could be combined
Total number of violations for this class: 1

org.crosswire.jsword.JSMsg

PrioBegin LineMethodDescription
3
32 All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.
Total number of violations for this class: 1

org.crosswire.jsword.JSOtherMsg

PrioBegin LineMethodDescription
3
32 All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.
Total number of violations for this class: 1

org.crosswire.jsword.book.BookData

PrioBegin LineMethodDescription
3
127getBooks Returning 'books' may expose an internal array.
Total number of violations for this class: 1

org.crosswire.jsword.book.Bookmark

PrioBegin LineMethodDescription
3
99clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

org.crosswire.jsword.book.basic.DefaultBookmark

PrioBegin LineMethodDescription
3
100clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

org.crosswire.jsword.book.filter.FilterFactory

PrioBegin LineMethodDescription
2
86 Use of modifier volatile is not recommended.
Total number of violations for this class: 1

org.crosswire.jsword.book.filter.osis.OSISFilter

PrioBegin LineMethodDescription
3
100clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

org.crosswire.jsword.book.filter.plaintext.PlainTextFilter

PrioBegin LineMethodDescription
3
66clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

org.crosswire.jsword.book.filter.thml.THMLFilter

PrioBegin LineMethodDescription
3
94clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

org.crosswire.jsword.book.readings.ReadingsBookDriver

PrioBegin LineMethodDescription
3
63getBooks Returning 'books' may expose an internal array.
Total number of violations for this class: 1

org.crosswire.jsword.book.readings.ReadingsKey

PrioBegin LineMethodDescription
3
105clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

org.crosswire.jsword.book.sword.AbstractKeyBackend

PrioBegin LineMethodDescription
3
150clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

org.crosswire.jsword.book.sword.RawFileBackend

PrioBegin LineMethodDescription
3
180createDataTextFile Prefer StringBuffer over += for concatenating strings
Total number of violations for this class: 1

org.crosswire.jsword.book.sword.SwordBook

PrioBegin LineMethodDescription
3
160addOSIS Substitute calls to size() == 0 (or size() != 0) with calls to isEmpty()
Total number of violations for this class: 1

org.crosswire.jsword.bridge.BookExporter

PrioBegin LineMethodDescription
3
97main Avoid printStackTrace(); use a logger call instead.
Total number of violations for this class: 1

org.crosswire.jsword.bridge.DwrBridge

PrioBegin LineMethodDescription
3
128getOSISString Avoid empty catch blocks
Total number of violations for this class: 1

org.crosswire.jsword.examples.BibleToOsis

PrioBegin LineMethodDescription
3
71main Avoid printStackTrace(); use a logger call instead.
Total number of violations for this class: 1

org.crosswire.jsword.index.lucene.LuceneIndex

PrioBegin LineMethodDescription
3
214 These nested if statements could be combined
Total number of violations for this class: 1

org.crosswire.jsword.passage.AbstractPassage

PrioBegin LineMethodDescription
3
117clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

org.crosswire.jsword.passage.BitwisePassage

PrioBegin LineMethodDescription
3
115clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

org.crosswire.jsword.passage.DefaultLeafKeyList

PrioBegin LineMethodDescription
3
240clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

org.crosswire.jsword.passage.DistinctPassage

PrioBegin LineMethodDescription
3
101clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

org.crosswire.jsword.passage.Key

PrioBegin LineMethodDescription
3
201clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

org.crosswire.jsword.passage.PassageTally

PrioBegin LineMethodDescription
3
186clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

org.crosswire.jsword.passage.RangedPassage

PrioBegin LineMethodDescription
3
104clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

org.crosswire.jsword.passage.ReadOnlyKeyList

PrioBegin LineMethodDescription
3
214clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

org.crosswire.jsword.passage.ReadOnlyPassage

PrioBegin LineMethodDescription
3
368clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

org.crosswire.jsword.passage.SynchronizedPassage

PrioBegin LineMethodDescription
3
317clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

org.crosswire.jsword.passage.TreeKey

PrioBegin LineMethodDescription
3
157clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

org.crosswire.jsword.passage.Verse

PrioBegin LineMethodDescription
3
301clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

org.crosswire.jsword.passage.VerseRange

PrioBegin LineMethodDescription
3
389clone clone() method should be implemented only if implementing Cloneable interface
Total number of violations for this class: 1

Generated by PMD 5.0.1 on 2013-06-19 - 00:06:26.