mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-09 06:39:33 +00:00
Final codacy issues
This commit is contained in:
parent
af192b2c1d
commit
95b981c991
@ -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()));
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user