Skip to content

Commit

Permalink
fix: fix SonarQube warning by addiing transient modifiers in SpoonObj…
Browse files Browse the repository at this point in the history
…ectFieldsTable (#2121)
  • Loading branch information
ashutosh1598 authored and monperrus committed Jun 27, 2018
1 parent 34346a6 commit 352b6b0
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/main/java/spoon/support/gui/SpoonObjectFieldsTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,28 @@
*/
package spoon.support.gui;

import spoon.Launcher;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.AbstractTableModel;
import java.awt.BorderLayout;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.AbstractTableModel;
import spoon.Launcher;


public class SpoonObjectFieldsTable extends JFrame {
public class SpoonObjectTableModel extends AbstractTableModel {

private static final long serialVersionUID = 1L;

List<Field> field;
transient List<Field> field;

Object o;
transient Object o;

public SpoonObjectTableModel(Object o) {
super();
Expand Down Expand Up @@ -112,7 +113,7 @@ public void scanFields(Class<?> c) {

private JTable jTable = null;

private Object o;
private transient Object o;

/**
* This is the default constructor
Expand Down Expand Up @@ -178,3 +179,4 @@ private void initialize() {
}

}

0 comments on commit 352b6b0

Please sign in to comment.