mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-19 19:14:55 +00:00
Add comment about changes that affect a deprecated method
This commit is contained in:
parent
7194ff676a
commit
2200b32f3c
@ -192,8 +192,11 @@ public class LocalFilesDSProcessor implements DataSourceProcessor {
|
||||
*/
|
||||
@Deprecated
|
||||
public void setDataSourceOptions(String paths) {
|
||||
//LocalFilesPanel.FILES_SEP is currently ","
|
||||
this.localFilePaths = Arrays.asList(paths.split(LocalFilesPanel.FILES_SEP));
|
||||
// The LocalFilesPanel used to separate file paths with a comma and pass
|
||||
// them as a string, but because file names are allowed to contain
|
||||
// commas, this approach was buggy and replaced. We now pass a list of
|
||||
// String paths.
|
||||
this.localFilePaths = Arrays.asList(paths.split(","));
|
||||
setDataSourceOptionsCalled = true;
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,6 @@ final class LocalFilesPanel extends JPanel {
|
||||
private final Set<File> currentFiles = new TreeSet<>(); //keep currents in a set to disallow duplicates per add
|
||||
private boolean enableNext = false;
|
||||
private static LocalFilesPanel instance;
|
||||
public static final String FILES_SEP = "|";
|
||||
private static final Logger logger = Logger.getLogger(LocalFilesPanel.class.getName());
|
||||
private String displayName = "";
|
||||
|
||||
@ -259,7 +258,6 @@ final class LocalFilesPanel extends JPanel {
|
||||
}
|
||||
this.selectedPaths.setText(allPaths.toString());
|
||||
this.selectedPaths.setToolTipText(allPaths.toString());
|
||||
|
||||
}
|
||||
|
||||
enableNext = !currentFiles.isEmpty();
|
||||
|
Loading…
x
Reference in New Issue
Block a user