Skip to content

Commit

Permalink
fix sonar bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
SrdjanStevanetic committed Oct 3, 2023
1 parent 1942db9 commit 64e661a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
package eu.europeana.api.translation.web.service;

import java.util.List;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import eu.europeana.api.translation.definitions.service.LanguageDetectionService;
import eu.europeana.api.translation.definitions.service.exception.LanguageDetectionException;

public class DummyLangDetectService implements LanguageDetectionService {

protected static final Logger LOG = LogManager.getLogger(DummyLangDetectService.class);
private final String serviceId = "DUMMY";

public DummyLangDetectService() {
}

Expand All @@ -31,7 +26,7 @@ public void close() {

@Override
public String getServiceId() {
return serviceId;
return "DUMMY";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
package eu.europeana.api.translation.web.service;

import java.util.List;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import eu.europeana.api.translation.definitions.service.TranslationService;
import eu.europeana.api.translation.definitions.service.exception.TranslationException;

public class DummyTranslationService implements TranslationService {

protected static final Logger LOG = LogManager.getLogger(DummyTranslationService.class);
private final String serviceId="DUMMY";

public DummyTranslationService() {
}

Expand Down Expand Up @@ -42,7 +37,7 @@ public String getExternalServiceEndPoint() {

@Override
public String getServiceId() {
return serviceId;
return "DUMMY";
}

@Override
Expand Down

0 comments on commit 64e661a

Please sign in to comment.