[Libreoffice-commits] core.git: 10 commits - qadevOOo/tests

Noel Grandin noel at peralex.com
Wed Oct 21 06:27:59 PDT 2015


 qadevOOo/tests/java/ifc/awt/_XButton.java                               |    6 --
 qadevOOo/tests/java/ifc/awt/_XCheckBox.java                             |    6 --
 qadevOOo/tests/java/ifc/awt/_XComboBox.java                             |   22 +---------
 qadevOOo/tests/java/ifc/awt/_XImageProducer.java                        |   11 -----
 qadevOOo/tests/java/ifc/awt/_XListBox.java                              |   21 +--------
 qadevOOo/tests/java/ifc/awt/_XRadioButton.java                          |    4 -
 qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboardNotifier.java |    2 
 qadevOOo/tests/java/ifc/text/_XTextTableCursor.java                     |    2 
 qadevOOo/tests/java/ifc/util/_XModifyBroadcaster.java                   |    6 --
 qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java       |    1 
 10 files changed, 11 insertions(+), 70 deletions(-)

New commits:
commit f7799477ddf650c6adf14bf8c77d0c3e31abed41
Author: Noel Grandin <noel at peralex.com>
Date:   Wed Oct 21 15:20:38 2015 +0200

    cid#1327138 UrF: Unread field
    
    Change-Id: I3454f75c9662c76203dd7a2a5e74827bf6d9baf8

diff --git a/qadevOOo/tests/java/ifc/awt/_XRadioButton.java b/qadevOOo/tests/java/ifc/awt/_XRadioButton.java
index 5bec1f8..a8757cd 100644
--- a/qadevOOo/tests/java/ifc/awt/_XRadioButton.java
+++ b/qadevOOo/tests/java/ifc/awt/_XRadioButton.java
@@ -46,8 +46,6 @@ public class _XRadioButton extends MultiMethodTest {
     * Listener implementation which sets flags on appropriate method calls
     */
     protected static class TestItemListener implements com.sun.star.awt.XItemListener {
-        public boolean disposingCalled = false ;
-        public boolean itemStateChangedCalled = false ;
         private final java.io.PrintWriter log;
 
         public TestItemListener(java.io.PrintWriter log) {
@@ -55,12 +53,10 @@ public class _XRadioButton extends MultiMethodTest {
         }
 
         public void disposing(com.sun.star.lang.EventObject e) {
-            disposingCalled = true ;
             log.println(" disposing was called.") ;
         }
 
         public void itemStateChanged(com.sun.star.awt.ItemEvent e) {
-            itemStateChangedCalled = true ;
             log.println(" itemStateChanged was called.") ;
         }
 
commit 971069f41daff6d56c524e3050b33f88502ff11d
Author: Noel Grandin <noel at peralex.com>
Date:   Wed Oct 21 15:20:00 2015 +0200

    cid#1327137 UrF: Unread field
    
    Change-Id: I146730254b1b6398a7108648608bddea2e915536

diff --git a/qadevOOo/tests/java/ifc/awt/_XListBox.java b/qadevOOo/tests/java/ifc/awt/_XListBox.java
index 62809b6..6c6ddd6 100644
--- a/qadevOOo/tests/java/ifc/awt/_XListBox.java
+++ b/qadevOOo/tests/java/ifc/awt/_XListBox.java
@@ -62,16 +62,10 @@ public class _XListBox extends MultiMethodTest {
     * Listener implementation which sets flags on appropriate method calls
     */
     protected static class TestActionListener implements com.sun.star.awt.XActionListener {
-        public boolean disposingCalled = false ;
-        public boolean actionPerformedCalled = false ;
 
-        public void disposing(com.sun.star.lang.EventObject e) {
-            disposingCalled = true ;
-        }
+        public void disposing(com.sun.star.lang.EventObject e) {}
 
-        public void actionPerformed(com.sun.star.awt.ActionEvent e) {
-            actionPerformedCalled = true ;
-        }
+        public void actionPerformed(com.sun.star.awt.ActionEvent e) {}
 
     }
 
@@ -81,17 +75,10 @@ public class _XListBox extends MultiMethodTest {
     * Listener implementation which sets flags on appropriate method calls
     */
     protected static class TestItemListener implements com.sun.star.awt.XItemListener {
-        public boolean disposingCalled = false ;
-        public boolean itemStateChangedCalled = false ;
 
-        public void disposing(com.sun.star.lang.EventObject e) {
-            disposingCalled = true ;
-        }
-
-        public void itemStateChanged(com.sun.star.awt.ItemEvent e) {
-            itemStateChangedCalled = true ;
-        }
+        public void disposing(com.sun.star.lang.EventObject e) {}
 
+        public void itemStateChanged(com.sun.star.awt.ItemEvent e) {}
     }
 
     TestItemListener itemListener = new TestItemListener() ;
commit 1b1294caacf30597f4385a81b2fec5ec7c3c6dc8
Author: Noel Grandin <noel at peralex.com>
Date:   Wed Oct 21 15:18:58 2015 +0200

    cid#1327136 UrF: Unread field
    
    Change-Id: Id12e6d6eb0f372ee92c77754fe13cd391cf1bacb

diff --git a/qadevOOo/tests/java/ifc/awt/_XImageProducer.java b/qadevOOo/tests/java/ifc/awt/_XImageProducer.java
index bdcfb44..140c6ff 100644
--- a/qadevOOo/tests/java/ifc/awt/_XImageProducer.java
+++ b/qadevOOo/tests/java/ifc/awt/_XImageProducer.java
@@ -48,10 +48,6 @@ public class _XImageProducer extends MultiMethodTest {
     protected static class TestImageConsumer implements XImageConsumer {
         PrintWriter log = null ;
         public boolean initCalled = false ;
-        public boolean setColorModelCalled = false ;
-        public boolean setPixelsByBytesCalled = false ;
-        public boolean setPixelsByLongsCalled = false ;
-        public boolean completeCalled = false ;
 
         TestImageConsumer(PrintWriter log) {
             log.println("### Consumer initialized" ) ;
@@ -65,28 +61,21 @@ public class _XImageProducer extends MultiMethodTest {
 
         public void setColorModel(short bitCount, int[] RGBAPal,
             int redMask, int greenMask, int blueMask, int alphaMask) {
-
             log.println("### setColorModel() called") ;
-            setColorModelCalled = true ;
         }
 
         public void setPixelsByBytes(int x, int y, int width, int height,
             byte[] data, int offset, int scanSize) {
-
             log.println("### setPixelByBytes() called") ;
-            setPixelsByBytesCalled = true ;
         }
 
         public void setPixelsByLongs(int x, int y, int width, int height,
             int[] data, int offset, int scanSize) {
-
             log.println("### setPixelByLongs() called") ;
-            setPixelsByLongsCalled = true ;
         }
 
         public void complete(int status, XImageProducer prod) {
             log.println("### complete() called") ;
-            completeCalled = true ;
         }
     }
 
commit b8f0a48ccfc09b7df5a6c550e4ac695b67539f1d
Author: Noel Grandin <noel at peralex.com>
Date:   Wed Oct 21 15:18:05 2015 +0200

    cid#1327135 UrF: Unread field
    
    Change-Id: I21a03af98b60592fb5d11c57c69cf605b51ad273

diff --git a/qadevOOo/tests/java/ifc/awt/_XComboBox.java b/qadevOOo/tests/java/ifc/awt/_XComboBox.java
index e487f98..37bf4e3 100644
--- a/qadevOOo/tests/java/ifc/awt/_XComboBox.java
+++ b/qadevOOo/tests/java/ifc/awt/_XComboBox.java
@@ -52,17 +52,10 @@ public class _XComboBox extends MultiMethodTest {
     */
     protected static class TestActionListener
         implements com.sun.star.awt.XActionListener {
-        public boolean disposingCalled = false;
-        public boolean actionPerformedCalled = false;
 
-        public void disposing(com.sun.star.lang.EventObject e) {
-            disposingCalled = true;
-        }
-
-        public void actionPerformed(com.sun.star.awt.ActionEvent e) {
-            actionPerformedCalled = true;
-        }
+        public void disposing(com.sun.star.lang.EventObject e) {}
 
+        public void actionPerformed(com.sun.star.awt.ActionEvent e) {}
     }
 
     /**
@@ -70,17 +63,10 @@ public class _XComboBox extends MultiMethodTest {
     */
     protected static class TestItemListener
         implements com.sun.star.awt.XItemListener {
-        public boolean disposingCalled = false;
-        public boolean itemStateChangedCalled = false;
 
-        public void disposing(com.sun.star.lang.EventObject e) {
-            disposingCalled = true;
-        }
-
-        public void itemStateChanged(com.sun.star.awt.ItemEvent e) {
-            itemStateChangedCalled = true;
-        }
+        public void disposing(com.sun.star.lang.EventObject e) {}
 
+        public void itemStateChanged(com.sun.star.awt.ItemEvent e) {}
     }
     private final TestActionListener actionListener = new TestActionListener();
     private final TestItemListener itemListener = new TestItemListener();
commit b5cde3be257343bdb381d2e36e882907974d6913
Author: Noel Grandin <noel at peralex.com>
Date:   Wed Oct 21 15:16:48 2015 +0200

    cid#1327134 UrF: Unread field
    
    Change-Id: Ib6d801b11515259481d4235db9d7a39d5891a289

diff --git a/qadevOOo/tests/java/ifc/awt/_XCheckBox.java b/qadevOOo/tests/java/ifc/awt/_XCheckBox.java
index a675f35..2262cc2 100644
--- a/qadevOOo/tests/java/ifc/awt/_XCheckBox.java
+++ b/qadevOOo/tests/java/ifc/awt/_XCheckBox.java
@@ -46,16 +46,12 @@ public class _XCheckBox extends MultiMethodTest {
     */
     protected static class TestItemListener implements com.sun.star.awt.XItemListener {
         public boolean disposingCalled = false ;
-        public boolean itemStateChangedCalled = false ;
 
         public void disposing(com.sun.star.lang.EventObject e) {
             disposingCalled = true ;
         }
 
-        public void itemStateChanged(com.sun.star.awt.ItemEvent e) {
-            itemStateChangedCalled = true ;
-        }
-
+        public void itemStateChanged(com.sun.star.awt.ItemEvent e) {}
     }
     TestItemListener listener = new TestItemListener() ;
     short state = -1 ;
commit 0220cdea886a5e7ba940ec0bbae94a58532c3095
Author: Noel Grandin <noel at peralex.com>
Date:   Wed Oct 21 15:16:03 2015 +0200

    cid#1327133 UrF: Unread field
    
    Change-Id: Ie910cdc66c5f243f1ba5f4b855154277746a6195

diff --git a/qadevOOo/tests/java/ifc/awt/_XButton.java b/qadevOOo/tests/java/ifc/awt/_XButton.java
index 444fcd5..fa5a830 100644
--- a/qadevOOo/tests/java/ifc/awt/_XButton.java
+++ b/qadevOOo/tests/java/ifc/awt/_XButton.java
@@ -44,16 +44,12 @@ public class _XButton extends MultiMethodTest {
     */
     protected static class TestActionListener implements com.sun.star.awt.XActionListener {
         public boolean disposingCalled = false ;
-        public boolean actionPerformedCalled = false ;
 
         public void disposing(com.sun.star.lang.EventObject e) {
             disposingCalled = true ;
         }
 
-        public void actionPerformed(com.sun.star.awt.ActionEvent e) {
-            actionPerformedCalled = true ;
-        }
-
+        public void actionPerformed(com.sun.star.awt.ActionEvent e) {}
     }
 
     TestActionListener listener = new TestActionListener() ;
commit 7b9f288bfd601354c1fc2cd8250c20bd3c583c62
Author: Noel Grandin <noel at peralex.com>
Date:   Wed Oct 21 15:15:03 2015 +0200

    cid#1327111 UrF: Unread field
    
    Change-Id: Id5f1fa62ea9fc40e6499ff3ee6c7a774f9220f02

diff --git a/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java b/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java
index 04132af..250652e 100644
--- a/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java
+++ b/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java
@@ -137,7 +137,6 @@ public class OSingleSelectQueryComposer extends TestCase {
 
     String tableName = null;
     DBTools.DataSourceInfo srcInf = null;
-    boolean isMySQLDB = false;
     protected static final String dbSourceName = "OSingleSelectQueryComposerDataSource";
 
     /**
commit 25c71f42934fa2e7b70f9311a302a6b1e4f026e4
Author: Noel Grandin <noel at peralex.com>
Date:   Wed Oct 21 15:14:09 2015 +0200

    cid#1327108 UrF: Unread field
    
    Change-Id: Ie8f3446ed71d7a4c0bb59f9a2882479a57080291

diff --git a/qadevOOo/tests/java/ifc/util/_XModifyBroadcaster.java b/qadevOOo/tests/java/ifc/util/_XModifyBroadcaster.java
index a8fd743..ecf27e2 100644
--- a/qadevOOo/tests/java/ifc/util/_XModifyBroadcaster.java
+++ b/qadevOOo/tests/java/ifc/util/_XModifyBroadcaster.java
@@ -42,13 +42,9 @@ import com.sun.star.util.XModifyListener;
 public class _XModifyBroadcaster extends MultiMethodTest {
     public XModifyBroadcaster oObj = null;
 
-    boolean modified = false;
-
     protected class TestModifyListener implements XModifyListener {
         public void disposing ( EventObject oEvent ) {}
-        public void modified (EventObject aEvent ) {
-            modified = true;
-        }
+        public void modified (EventObject aEvent ) {}
     }
 
     private final TestModifyListener listener = new TestModifyListener();
commit b644c818e0f8c805528709657b255302235a8a91
Author: Noel Grandin <noel at peralex.com>
Date:   Wed Oct 21 15:13:16 2015 +0200

    cid#1327107 UrF: Unread field
    
    Change-Id: Iae4439338f63a271e20a990b41241e8dc1a3e752

diff --git a/qadevOOo/tests/java/ifc/text/_XTextTableCursor.java b/qadevOOo/tests/java/ifc/text/_XTextTableCursor.java
index 4bbea70..0c6a4cb 100644
--- a/qadevOOo/tests/java/ifc/text/_XTextTableCursor.java
+++ b/qadevOOo/tests/java/ifc/text/_XTextTableCursor.java
@@ -56,8 +56,6 @@ public class _XTextTableCursor extends MultiMethodTest {
 
     public XTextTableCursor oObj = null;    // oObj filled by MultiMethodTest
 
-    XCell oCell = null;
-
     /**
      * Moves the cursor to upper-left cell and checks
      * its range name. <p>
commit e0030bf10e0f8a3d2f828ef08a9546633efc7ee4
Author: Noel Grandin <noel at peralex.com>
Date:   Wed Oct 21 15:12:18 2015 +0200

    cid#1327096 UrF: Unread field
    
    Change-Id: Ibe4d0e53a167224cdfcd68328a57d920f3369880

diff --git a/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboardNotifier.java b/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboardNotifier.java
index dc14f7d..4fa6a27 100644
--- a/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboardNotifier.java
+++ b/qadevOOo/tests/java/ifc/datatransfer/clipboard/_XClipboardNotifier.java
@@ -55,11 +55,9 @@ public class _XClipboardNotifier extends MultiMethodTest {
      */
     static class MyOwner implements XClipboardOwner {
         XClipboard board;
-        XTransferable contents;
 
         public void lostOwnership(XClipboard board, XTransferable contents) {
             this.board = board;
-            this.contents = contents;
         }
     }
 


More information about the Libreoffice-commits mailing list