mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
Fixed use of generics to remove compiler warnings.
This commit is contained in:
parent
47ebc70435
commit
757e1ffa97
@ -174,6 +174,7 @@ public class DataResultViewerTable extends AbstractDataResultViewer {
|
|||||||
* @param parent Node with at least one child to get properties from
|
* @param parent Node with at least one child to get properties from
|
||||||
* @return Properties,
|
* @return Properties,
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("rawtypes")
|
||||||
private Node.Property[] getAllChildPropertyHeaders(Node parent) {
|
private Node.Property[] getAllChildPropertyHeaders(Node parent) {
|
||||||
Node firstChild = parent.getChildren().getNodeAt(0);
|
Node firstChild = parent.getChildren().getNodeAt(0);
|
||||||
|
|
||||||
@ -432,6 +433,7 @@ public class DataResultViewerTable extends AbstractDataResultViewer {
|
|||||||
* @param table the object table
|
* @param table the object table
|
||||||
* @return max the maximum width of the column
|
* @return max the maximum width of the column
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("rawtypes")
|
||||||
private int getMaxColumnWidth(int index, FontMetrics metrics, int margin, int padding, List<Node.Property> header, Object[][] table) {
|
private int getMaxColumnWidth(int index, FontMetrics metrics, int margin, int padding, List<Node.Property> header, Object[][] table) {
|
||||||
// set the tree (the node / names column) width
|
// set the tree (the node / names column) width
|
||||||
String headerName = header.get(index - 1).getDisplayName();
|
String headerName = header.get(index - 1).getDisplayName();
|
||||||
|
@ -109,6 +109,7 @@
|
|||||||
</Properties>
|
</Properties>
|
||||||
<AuxValues>
|
<AuxValues>
|
||||||
<AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new javax.swing.JComboBox<String>()"/>
|
<AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new javax.swing.JComboBox<String>()"/>
|
||||||
|
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="<String>"/>
|
||||||
</AuxValues>
|
</AuxValues>
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="tagLabel">
|
<Component class="javax.swing.JLabel" name="tagLabel">
|
||||||
|
@ -242,7 +242,7 @@ public class TagAndCommentDialog extends JDialog {
|
|||||||
private javax.swing.JTextField commentText;
|
private javax.swing.JTextField commentText;
|
||||||
private javax.swing.JButton newTagButton;
|
private javax.swing.JButton newTagButton;
|
||||||
private javax.swing.JButton okButton;
|
private javax.swing.JButton okButton;
|
||||||
private javax.swing.JComboBox tagCombo;
|
private javax.swing.JComboBox<String> tagCombo;
|
||||||
private javax.swing.JLabel tagLabel;
|
private javax.swing.JLabel tagLabel;
|
||||||
// End of variables declaration//GEN-END:variables
|
// End of variables declaration//GEN-END:variables
|
||||||
}
|
}
|
||||||
|
@ -307,7 +307,7 @@ public class IngestManager {
|
|||||||
* @param pipelineContext ingest context used to ingest parent of the file
|
* @param pipelineContext ingest context used to ingest parent of the file
|
||||||
* to be scheduled
|
* to be scheduled
|
||||||
*/
|
*/
|
||||||
void scheduleFile(AbstractFile file, PipelineContext pipelineContext) {
|
void scheduleFile(AbstractFile file, PipelineContext<IngestModuleAbstractFile> pipelineContext) {
|
||||||
scheduler.getFileScheduler().schedule(file, pipelineContext);
|
scheduler.getFileScheduler().schedule(file, pipelineContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -320,7 +320,7 @@ class IngestScheduler {
|
|||||||
*
|
*
|
||||||
* @param task tasks similar to this one should be removed
|
* @param task tasks similar to this one should be removed
|
||||||
*/
|
*/
|
||||||
private void removeDupTasks(ScheduledTask task) {
|
private <T extends IngestModuleAbstract> void removeDupTasks(ScheduledTask<T> task) {
|
||||||
final Content inputContent = task.getContent();
|
final Content inputContent = task.getContent();
|
||||||
|
|
||||||
//remove from root queue
|
//remove from root queue
|
||||||
@ -365,8 +365,8 @@ class IngestScheduler {
|
|||||||
* @param originalContext original content schedule context that was used
|
* @param originalContext original content schedule context that was used
|
||||||
* to schedule the parent origin content, with the modules, settings, etc.
|
* to schedule the parent origin content, with the modules, settings, etc.
|
||||||
*/
|
*/
|
||||||
synchronized void schedule(AbstractFile file, PipelineContext originalContext) {
|
synchronized void schedule(AbstractFile file, PipelineContext<IngestModuleAbstractFile> originalContext) {
|
||||||
ScheduledTask originalTask = originalContext.getScheduledTask();
|
ScheduledTask<IngestModuleAbstractFile> originalTask = originalContext.getScheduledTask();
|
||||||
|
|
||||||
//skip if task contains no modules
|
//skip if task contains no modules
|
||||||
if (originalTask.getModules().isEmpty()) {
|
if (originalTask.getModules().isEmpty()) {
|
||||||
|
@ -136,7 +136,7 @@ public class IngestServices {
|
|||||||
* @param file file to be scheduled
|
* @param file file to be scheduled
|
||||||
* @param pipelineContext the ingest context for the file ingest pipeline
|
* @param pipelineContext the ingest context for the file ingest pipeline
|
||||||
*/
|
*/
|
||||||
public <T extends IngestModuleAbstract> void scheduleFile(AbstractFile file, PipelineContext<T> pipelineContext) {
|
public void scheduleFile(AbstractFile file, PipelineContext<IngestModuleAbstractFile> pipelineContext) {
|
||||||
logger.log(Level.INFO, "Scheduling file: " + file.getName());
|
logger.log(Level.INFO, "Scheduling file: " + file.getName());
|
||||||
manager.scheduleFile(file, pipelineContext);
|
manager.scheduleFile(file, pipelineContext);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user