db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/broker AutomaticForeignKeys.java
Date Wed, 02 Apr 2003 20:24:17 GMT
thma        2003/04/02 12:24:17

  Modified:    src/test/org/apache/ojb/odmg ProjectionAttributeTest.java
               src/test/org/apache/ojb/soda SodaExamples.java
               src/test/org/apache/ojb/performance PerfHandle.java
                        PerfTest.java
               src/test/org/apache/ojb/tutorial2 UCEditProduct.java
               src/test/org/apache/ojb/broker AutomaticForeignKeys.java
  Log:
  get rid of some unused local variables
  
  Revision  Changes    Path
  1.7       +2 -1      db-ojb/src/test/org/apache/ojb/odmg/ProjectionAttributeTest.java
  
  Index: ProjectionAttributeTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/odmg/ProjectionAttributeTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ProjectionAttributeTest.java	5 Feb 2003 20:04:40 -0000	1.6
  +++ ProjectionAttributeTest.java	2 Apr 2003 20:24:17 -0000	1.7
  @@ -101,6 +101,7 @@
                   Object[] res = (Object[]) it.next();
                   String firstname = (String) res[0];
                   String lastname = (String) res[1];
  +                
                   i++;
               }
               if (i < COUNT)
  @@ -111,7 +112,7 @@
               List result1 = (List) query1.execute();
               for (it = result1.iterator(); it.hasNext(); )
               {
  -                Integer value = (Integer) it.next();
  +                it.next();
               }
               tx.commit();
           }
  
  
  
  1.4       +6 -6      db-ojb/src/test/org/apache/ojb/soda/SodaExamples.java
  
  Index: SodaExamples.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/soda/SodaExamples.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SodaExamples.java	8 Nov 2002 14:01:28 -0000	1.3
  +++ SodaExamples.java	2 Apr 2003 20:24:17 -0000	1.4
  @@ -92,7 +92,7 @@
               while (oSet.hasNext())
               {
                   count++;
  -             	Object obj = oSet.next();   
  +             	oSet.next();   
               }
               assertEquals(limit, count);
               oSet.reset();
  @@ -100,7 +100,7 @@
               while (oSet.hasNext())
               {
                   count++;
  -             	Object obj = oSet.next();   
  +             	oSet.next();   
               }
               assertEquals(limit, count);
               
  @@ -132,14 +132,14 @@
               for (int i=0; i<7; i++)
               {
                   count++;
  -             	Object obj = oSet.next(); 
  +             	oSet.next(); 
               }
               oSet.reset();
               count = 0;
               while (oSet.hasNext())
               {
                   count++;
  -             	Object obj = oSet.next();   
  +             	oSet.next();   
               }
               assertEquals(limit, count);
               
  @@ -170,14 +170,14 @@
               for (int i=0; i<7; i++)
               {
                   count++;
  -             	Object obj = oSet.next(); 
  +             	oSet.next(); 
               }
               oSet.reset();
               count = 0;
               while (oSet.hasNext())
               {
                   count++;
  -             	Object obj = oSet.next();   
  +             	oSet.next();   
               }
               assertEquals(oSet.size(), count);
               
  
  
  
  1.3       +3 -3      db-ojb/src/test/org/apache/ojb/performance/PerfHandle.java
  
  Index: PerfHandle.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/performance/PerfHandle.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PerfHandle.java	7 Feb 2003 10:58:40 -0000	1.2
  +++ PerfHandle.java	2 Apr 2003 20:24:17 -0000	1.3
  @@ -149,7 +149,7 @@
               }
   
               period = System.currentTimeMillis();
  -            Collection col = readArticlesByCursor(objectName);
  +            //Collection col = readArticlesByCursor(objectName);
               period = System.currentTimeMillis() - period;
               test.addTime(2, period);
   
  @@ -189,7 +189,7 @@
           while (iter.hasNext())
           {
               fetchCount++;
  -            PerfArticle a = (PerfArticle) iter.next();
  +            iter.next();
           }
           if (fetchCount != arr.length)
           {
  
  
  
  1.3       +1 -2      db-ojb/src/test/org/apache/ojb/performance/PerfTest.java
  
  Index: PerfTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/performance/PerfTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PerfTest.java	7 Feb 2003 10:58:40 -0000	1.2
  +++ PerfTest.java	2 Apr 2003 20:24:17 -0000	1.3
  @@ -113,7 +113,6 @@
   
       public void testMultithreaded()
       {
  -        String sep = System.getProperty("line.separator");
           testTimes[0] = System.currentTimeMillis();
           for (int i = 0; i < PerfMain.getConcurrentThreads(); i++)
           {
  
  
  
  1.4       +0 -1      db-ojb/src/test/org/apache/ojb/tutorial2/UCEditProduct.java
  
  Index: UCEditProduct.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/tutorial2/UCEditProduct.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- UCEditProduct.java	1 Feb 2003 15:35:21 -0000	1.3
  +++ UCEditProduct.java	2 Apr 2003 20:24:17 -0000	1.4
  @@ -29,7 +29,6 @@
           // 1. build oql query to select product by id:
           String oqlQuery = "select del from " + Product.class.getName() + " where id = "
+ id;
   
  -        Database db = odmg.getDatabase(null); // the current DB
           Transaction tx = null;
           try
           {
  
  
  
  1.5       +0 -4      db-ojb/src/test/org/apache/ojb/broker/AutomaticForeignKeys.java
  
  Index: AutomaticForeignKeys.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/AutomaticForeignKeys.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AutomaticForeignKeys.java	14 Jan 2003 11:16:20 -0000	1.4
  +++ AutomaticForeignKeys.java	2 Apr 2003 20:24:17 -0000	1.5
  @@ -67,7 +67,6 @@
   			pg.setName("Software");
   			art.setProductGroup(pg);
   			Identity artOID = new Identity(art, broker);
  -			Identity pgOID = new Identity(pg, broker);
   			broker.beginTransaction();
   			broker.store(art);
   			broker.store(pg);
  @@ -102,9 +101,6 @@
   			pg.add(art1);
   			pg.add(art2);
   			pg.add(art3);
  -			Identity a1OID = new Identity(art1, broker);
  -			Identity a2OID = new Identity(art2, broker);
  -			Identity a3OID = new Identity(art3, broker);
   			Identity pgOID = new Identity(pg, broker);
   			broker.store(pg);
   			broker.clearCache();
  
  
  

Mime
View raw message