openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curti...@apache.org
Subject svn commit: r1354597 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/TestAudit.java
Date Wed, 27 Jun 2012 15:57:19 GMT
Author: curtisr7
Date: Wed Jun 27 15:57:18 2012
New Revision: 1354597

URL: http://svn.apache.org/viewvc?rev=1354597&view=rev
Log:
OPENJPA-2030: Fix line length.

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/TestAudit.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/TestAudit.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/TestAudit.java?rev=1354597&r1=1354596&r2=1354597&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/TestAudit.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/audit/TestAudit.java
Wed Jun 27 15:57:18 2012
@@ -138,12 +138,10 @@ public class TestAudit extends TestCase 
      *  
      */
     AuditedEntry findLastAuditedEntry(AuditableOperation op) {
-    	List<AuditedEntry> entry = 
-        	em.createQuery("select a from AuditedEntry a where a.operation=:op order by a.id
desc", AuditedEntry.class)
-        	  .setMaxResults(1)
-        	  .setParameter("op", op)
-        	  .getResultList();
-    	return entry.get(0);
+        List<AuditedEntry> entry =
+            em.createQuery("select a from AuditedEntry a where a.operation=:op order by a.id
desc", AuditedEntry.class)
+                .setMaxResults(1).setParameter("op", op).getResultList();
+        return entry.get(0);
     }
 
 



Mime
View raw message