Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sonarqube-repair : add transient modifier in SpoonObjectFieldsTable.java #2121

Merged
merged 1 commit into from
Jun 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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() {
}

}