mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 09:17:42 +00:00
some cleanup
This commit is contained in:
parent
0db10dd176
commit
2881b94042
@ -425,12 +425,16 @@ public class DataResultViewerTable extends AbstractDataResultViewer {
|
|||||||
for (Property<?> prop : props) {
|
for (Property<?> prop : props) {
|
||||||
Integer value = Integer.valueOf(NbPreferences.forModule(this.getClass()).get(getUniqueName(root, prop), "-1"));
|
Integer value = Integer.valueOf(NbPreferences.forModule(this.getClass()).get(getUniqueName(root, prop), "-1"));
|
||||||
if (value >= 0) {
|
if (value >= 0) {
|
||||||
|
/**
|
||||||
|
* The original contents of orderedProps do not matter when setting the new ordered values. The reason
|
||||||
|
* we copy propertiesAcc into it first is to give it the currect size so we can set() in any index.
|
||||||
|
*/
|
||||||
orderedProps.set(value, prop);
|
orderedProps.set(value, prop);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
propertiesAcc.clear();
|
propertiesAcc.clear();
|
||||||
for (int j = 0; j < props.size(); ++j) {
|
for (Property<?> prop : orderedProps) {
|
||||||
propertiesAcc.add(orderedProps.get(j));
|
propertiesAcc.add(prop);
|
||||||
}
|
}
|
||||||
return orderedProps;
|
return orderedProps;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user