[libbluray-devel] Remove double data

hpi1 git at videolan.org
Fri May 13 09:37:47 CEST 2016


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sat Apr 30 16:49:15 2016 +0300| [6484667f5627a79930abe50155e2e62032f501f9] | committer: hpi1

Remove double data

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=6484667f5627a79930abe50155e2e62032f501f9
---

 src/libbluray/bdj/java/org/havi/ui/event/HActionEvent.java     |    7 ++-----
 .../bdj/java/org/havi/ui/event/HBackgroundImageEvent.java      |    8 +-------
 .../bdj/java/org/havi/ui/event/HScreenDeviceReleasedEvent.java |    7 -------
 .../bdj/java/org/havi/ui/event/HScreenDeviceReservedEvent.java |    7 -------
 .../java/org/havi/ui/event/HScreenLocationModifiedEvent.java   |    7 -------
 5 files changed, 3 insertions(+), 33 deletions(-)

diff --git a/src/libbluray/bdj/java/org/havi/ui/event/HActionEvent.java b/src/libbluray/bdj/java/org/havi/ui/event/HActionEvent.java
index 02459d7..fccb13a 100644
--- a/src/libbluray/bdj/java/org/havi/ui/event/HActionEvent.java
+++ b/src/libbluray/bdj/java/org/havi/ui/event/HActionEvent.java
@@ -25,18 +25,15 @@ import org.havi.ui.HActionInputPreferred;
 public class HActionEvent extends ActionEvent {
     public HActionEvent(HActionInputPreferred source, int id, String command) {
         super(source, id, command);
-
-        this.command = command;
     }
 
     public String getActionCommand() {
-        return command;
+        return super.getActionCommand();
     }
 
     public int getModifiers() {
-        return 0;
+        return super.getModifiers();
     }
 
-    private String command;
     private static final long serialVersionUID = -906983727975217421L;
 }
diff --git a/src/libbluray/bdj/java/org/havi/ui/event/HBackgroundImageEvent.java b/src/libbluray/bdj/java/org/havi/ui/event/HBackgroundImageEvent.java
index 0223bc4..3597e43 100644
--- a/src/libbluray/bdj/java/org/havi/ui/event/HBackgroundImageEvent.java
+++ b/src/libbluray/bdj/java/org/havi/ui/event/HBackgroundImageEvent.java
@@ -25,14 +25,9 @@ public class HBackgroundImageEvent extends EventObject {
     public HBackgroundImageEvent(Object source, int id) {
         super(source);
 
-        this.source = source;
         this.id = id;
     }
 
-    public Object getSource() {
-        return source;
-    }
-
     public int getID() {
         return id;
     }
@@ -48,7 +43,6 @@ public class HBackgroundImageEvent extends EventObject {
     public static final int BACKGROUNDIMAGE_INVALID = 4;
     public static final int BACKGROUNDIMAGE_LAST = 4;
 
-    private Object source;
-    private int id;
+    private final int id;
     private static final long serialVersionUID = 4941828555539092236L;
 }
diff --git a/src/libbluray/bdj/java/org/havi/ui/event/HScreenDeviceReleasedEvent.java b/src/libbluray/bdj/java/org/havi/ui/event/HScreenDeviceReleasedEvent.java
index ec77189..9356a8c 100644
--- a/src/libbluray/bdj/java/org/havi/ui/event/HScreenDeviceReleasedEvent.java
+++ b/src/libbluray/bdj/java/org/havi/ui/event/HScreenDeviceReleasedEvent.java
@@ -24,14 +24,7 @@ import org.davic.resources.ResourceStatusEvent;
 public class HScreenDeviceReleasedEvent extends ResourceStatusEvent {
     public HScreenDeviceReleasedEvent(Object source) {
         super(source);
-
-        this.source = source;
-    }
-
-    public Object getSource() {
-        return source;
     }
 
-    private Object source;
     private static final long serialVersionUID = -5310071769898889888L;
 }
diff --git a/src/libbluray/bdj/java/org/havi/ui/event/HScreenDeviceReservedEvent.java b/src/libbluray/bdj/java/org/havi/ui/event/HScreenDeviceReservedEvent.java
index f40911f..a9288be 100644
--- a/src/libbluray/bdj/java/org/havi/ui/event/HScreenDeviceReservedEvent.java
+++ b/src/libbluray/bdj/java/org/havi/ui/event/HScreenDeviceReservedEvent.java
@@ -24,14 +24,7 @@ import org.davic.resources.ResourceStatusEvent;
 public class HScreenDeviceReservedEvent extends ResourceStatusEvent {
     public HScreenDeviceReservedEvent(Object source) {
         super(source);
-
-        this.source = source;
-    }
-
-    public Object getSource() {
-        return source;
     }
 
-    private Object source;
     private static final long serialVersionUID = 944596304967870290L;
 }
diff --git a/src/libbluray/bdj/java/org/havi/ui/event/HScreenLocationModifiedEvent.java b/src/libbluray/bdj/java/org/havi/ui/event/HScreenLocationModifiedEvent.java
index 31388c5..f33b7b5 100644
--- a/src/libbluray/bdj/java/org/havi/ui/event/HScreenLocationModifiedEvent.java
+++ b/src/libbluray/bdj/java/org/havi/ui/event/HScreenLocationModifiedEvent.java
@@ -24,14 +24,7 @@ import java.util.EventObject;
 public class HScreenLocationModifiedEvent extends EventObject {
     public HScreenLocationModifiedEvent(Object source) {
         super(source);
-
-        this.source = source;
-    }
-
-    public Object getSource() {
-        return source;
     }
 
-    private Object source;
     private static final long serialVersionUID = -2915447586541903280L;
 }



More information about the libbluray-devel mailing list