PMD Results

The following document contains the results of PMD 7.6.0.

Violations By Priority

Priority 1

io/github/olyutorskii/quetexj/SwingLogHandler.java

Rule Violation Line
ConstructorCallsOverridableMethod Overridable method called during object construction: Handler.setFormatter(Formatter) 61

Priority 3

io/github/olyutorskii/quetexj/HeightKeeper.java

Rule Violation Line
AvoidSynchronizedStatement Use ReentrantLock rather than synchronization 160163
AvoidSynchronizedStatement Use ReentrantLock rather than synchronization 184187

io/github/olyutorskii/quetexj/MaxTracker.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 24268

io/github/olyutorskii/quetexj/MvcFacade.java

Rule Violation Line
DataClass The class 'MvcFacade' is suspected to be a Data Class (WOC=14.286%, NOPA=0, NOAM=6, WMC=10) 20
LongVariable Avoid excessively long variable names like trackSwitchButtonModel 24
LongVariable Avoid excessively long variable names like trackSwitchButtonModel 58

io/github/olyutorskii/quetexj/SwingLogHandler.java

Rule Violation Line
AvoidSynchronizedAtMethodLevel Use block level locking rather than method level synchronization 86
AvoidStringBufferField StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 150

Files

io/github/olyutorskii/quetexj/HeightKeeper.java

Rule Violation Priority Line
AvoidSynchronizedStatement Use ReentrantLock rather than synchronization 3 160163
AvoidSynchronizedStatement Use ReentrantLock rather than synchronization 3 184187

io/github/olyutorskii/quetexj/MaxTracker.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 24268

io/github/olyutorskii/quetexj/MvcFacade.java

Rule Violation Priority Line
DataClass The class 'MvcFacade' is suspected to be a Data Class (WOC=14.286%, NOPA=0, NOAM=6, WMC=10) 3 20
LongVariable Avoid excessively long variable names like trackSwitchButtonModel 3 24
LongVariable Avoid excessively long variable names like trackSwitchButtonModel 3 58

io/github/olyutorskii/quetexj/SwingLogHandler.java

Rule Violation Priority Line
ConstructorCallsOverridableMethod Overridable method called during object construction: Handler.setFormatter(Formatter) 1 61
AvoidSynchronizedAtMethodLevel Use block level locking rather than method level synchronization 3 86
AvoidStringBufferField StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 3 150

Suppressed Violations

Filename Rule message Suppression type Reason
io/github/olyutorskii/quetexj/ClearDocumentAction.java Classes implementing Serializable should set a serialVersionUID @suppresswarnings