Showing 14 of 22 total issues
Method getPosibleConversions
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public String[] getPosibleConversions(String extension)
{
switch (extension)
{
default:
Method loadFiles
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public List<FileDescriptionEntity> loadFiles(FileTreeRequest fileTreeRequest) {
final String path = fileTreeRequest.getPath();
final File filesDirectory = new File(Path.combine(comparisonConfiguration.getFilesDirectory(), path));
Method fillStamp
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void fillStamp(List<StampLine> innerLines, List<StampLine> outerLines) {
for (int i = 0; i < stampData.size(); i++) {
StampXmlEntity stampXmlEntity = stampData.get(i);
String text = "";
for (int j = 0; j < stampXmlEntity.getTextRepeat(); j++) {
Method getDocumentDescription
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public AnnotatedDocumentEntity getDocumentDescription(LoadDocumentRequest loadDocumentRequest) {
try {
// get/set parameters
String documentGuid = loadDocumentRequest.getGuid();
Method download
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public ResponseEntity download(String path) throws IOException {
if(path != null && !path.isEmpty()){
String destinationPath = FilenameUtils.concat(conversionConfiguration.getResultDirectory(),path);
String ext = FilenameUtils.getExtension(destinationPath);
Method createAnnotator
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static Annotator createAnnotator(AnnotationDataEntity annotationData, PageData pageData) {
switch (annotationData.getType()) {
case "text":
return new TextAnnotator(annotationData, pageData);
case "area":
Method uploadFile
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static String uploadFile(String documentStoragePath, MultipartFile content, String url, Boolean rewrite) {
String filePath;
try {
String fileName;
// save from file content
Method newLine
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public Line newLine(String line, double x, double y, double width, double height, List<Word> words) {
Method newPage
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public Page newPage(int number, String name, boolean visible, int width, int height, List<Line> lines) {
Method newWord
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public Word newWord(String word, double x, double y, double width, double height, List<Character> characters) {
Method newPage
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public Page newPage(int number, boolean visible, int width, int height, List<Line> lines) {
Method newCharacter
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public Character newCharacter(char character, double x, double y, double width, double height) {
Method newTextElement
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public <T> TextElement<T> newTextElement(T value, double x, double y, double width, double height) {
Method newPage
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public Page newPage(int number, String name, boolean visible, int width, int height) {