Added serialVerionUID constants.

main
Deryck Brown 3 years ago
parent 5fa828c450
commit 1bc91a2394
  1. 4
      Triangle.Compiler/src/main/java/Triangle/SyntacticAnalyzer/SyntaxError.java
  2. 7
      Triangle.Compiler/src/main/java/Triangle/TreeDrawer/DrawerFrame.java
  3. 6
      Triangle.Compiler/src/main/java/Triangle/TreeDrawer/DrawerPanel.java

@ -16,7 +16,9 @@ package Triangle.SyntacticAnalyzer;
class SyntaxError extends Exception {
SyntaxError() {
private static final long serialVersionUID = -5280306336102766860L;
SyntaxError() {
super();
}

@ -25,7 +25,12 @@ import javax.swing.JPanel;
import javax.swing.JScrollPane;
class DrawerFrame extends JFrame {
public DrawerFrame(JPanel panel) {
/**
*
*/
private static final long serialVersionUID = -3650404598416929282L;
public DrawerFrame(JPanel panel) {
setSize(300, 200);
Toolkit tk = Toolkit.getDefaultToolkit();
Dimension d = tk.getScreenSize();

@ -20,7 +20,11 @@ import java.awt.Graphics;
import javax.swing.JPanel;
class DrawerPanel extends JPanel {
private Drawer drawer;
/**
*
*/
private static final long serialVersionUID = 565914745506889669L;
private Drawer drawer;
public DrawerPanel(Drawer drawer) {
setPreferredSize(new Dimension(4096, 4096));