MCR-3084 Refactor and optimize XEditor #2128
6 new issues (0 max.) of at least minor severity.
Here is an overview of what got changed by this pull request:
Issues
======
- Added 6
Complexity increasing per file
==============================
- mycore-xeditor/src/main/java/org/mycore/frontend/xeditor/mapper/MCRFieldMapping.java 3
- mycore-xeditor/src/main/java/org/mycore/frontend/xeditor/mapper/MCRField.java 1
- mycore-xeditor/src/main/java/org/mycore/frontend/xeditor/mapper/MCRMappingDecoder.java 2
- mycore-xeditor/src/test/java/org/mycore/frontend/xeditor/MCRXEditorTestRunner.java 14
Complexity decreasing per file
==============================
+ mycore-xeditor/src/main/java/org/mycore/frontend/xeditor/MCREditorSubmission.java -5
+ mycore-xeditor/src/main/java/org/mycore/frontend/xeditor/tracker/MCRChangeTracker.java -1
+ mycore-xeditor/src/test/java/org/mycore/frontend/xeditor/MCRXEditorTransformerTest.java -2
+ mycore-xeditor/src/main/java/org/mycore/frontend/xeditor/tracker/MCRSetElementText.java -1
Clones removed
==============
+ mycore-xeditor/src/test/java/org/mycore/frontend/xeditor/tracker/MCRChangeTrackerTest.java -2
+ mycore-xeditor/src/test/java/org/mycore/frontend/xeditor/MCREditorSubmissionTest.java -2
See the complete overview on Codacy
Annotations
codacy-production / Codacy Static Code Analysis
mycore-xeditor/src/main/java/org/mycore/frontend/xeditor/mapper/MCRField.java#L14
Avoid unnecessary constructors - the compiler will generate these for you
codacy-production / Codacy Static Code Analysis
mycore-xeditor/src/main/java/org/mycore/frontend/xeditor/tracker/MCRChange.java#L36
Document empty method body
codacy-production / Codacy Static Code Analysis
mycore-xeditor/src/main/java/org/mycore/frontend/xeditor/tracker/MCRChangeTracker.java#L46
'while' construct must use '{}'s.
codacy-production / Codacy Static Code Analysis
mycore-xeditor/src/test/java/org/mycore/frontend/xeditor/MCRXEditorTestRunner.java#L47
Perhaps 'xEditor' could be replaced by a local variable.
codacy-production / Codacy Static Code Analysis
mycore-xeditor/src/test/java/org/mycore/frontend/xeditor/MCRXEditorTestRunner.java#L64
A switch statement does not contain a break
codacy-production / Codacy Static Code Analysis
mycore-xeditor/src/test/java/org/mycore/frontend/xeditor/MCRXEditorTestRunner.java#L155
Avoid reassigning parameters such as 'html'