Final codacy issues

This commit is contained in:
U-BASIS\dsmyda 2018-10-29 09:01:51 -04:00
parent af192b2c1d
commit 95b981c991
2 changed files with 4 additions and 3 deletions

View File

@ -66,9 +66,11 @@ public class LocalDirectoryNode extends SpecialDirectoryNode {
Bundle.LocalDirectoryNode_createSheet_name_desc(), Bundle.LocalDirectoryNode_createSheet_name_desc(),
getName())); getName()));
final String NO_DESCR = Bundle.LocalDirectoryNode_createSheet_noDesc();
if(UserPreferences.displayTranslationFileNames()) { if(UserPreferences.displayTranslationFileNames()) {
String translation = getTranslatedFileName(); String translation = getTranslatedFileName();
sheetSet.put(new NodeProperty<>("Translated Name", "Translated Name", "", translation)); sheetSet.put(new NodeProperty<>(Bundle.AbstractAbstractFileNode_translateFileName(),
Bundle.AbstractAbstractFileNode_translateFileName(), NO_DESCR, translation));
} }
addScoreProperty(sheetSet, tags); addScoreProperty(sheetSet, tags);
@ -87,7 +89,6 @@ public class LocalDirectoryNode extends SpecialDirectoryNode {
Map<String, Object> map = new LinkedHashMap<>(); Map<String, Object> map = new LinkedHashMap<>();
fillPropertyMap(map, getContent()); fillPropertyMap(map, getContent());
final String NO_DESCR = Bundle.LocalDirectoryNode_createSheet_noDesc();
for (Map.Entry<String, Object> entry : map.entrySet()) { for (Map.Entry<String, Object> entry : map.entrySet()) {
sheetSet.put(new NodeProperty<>(entry.getKey(), entry.getKey(), NO_DESCR, entry.getValue())); sheetSet.put(new NodeProperty<>(entry.getKey(), entry.getKey(), NO_DESCR, entry.getValue()));
} }

View File

@ -28,7 +28,7 @@ import org.openide.util.Lookup;
/** /**
* Service for finding and running TextTranslator implementations * Service for finding and running TextTranslator implementations
*/ */
public class TextTranslationService { public final class TextTranslationService {
private final static TextTranslationService tts = new TextTranslationService(); private final static TextTranslationService tts = new TextTranslationService();