commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r786869 - /commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/AbstractStructure.java
Date Sat, 20 Jun 2009 17:47:03 GMT
Author: mturk
Date: Sat Jun 20 17:47:02 2009
New Revision: 786869

URL: http://svn.apache.org/viewvc?rev=786869&view=rev
Log:
Make sure we init on success

Modified:
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/AbstractStructure.java

Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/AbstractStructure.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/AbstractStructure.java?rev=786869&r1=786868&r2=786869&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/AbstractStructure.java
(original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/AbstractStructure.java
Sat Jun 20 17:47:02 2009
@@ -52,7 +52,6 @@
     {
         if (inited)
             return;
-        inited = true;
         for (Field f : this.getClass().getFields()) {
             OffsetOf o = f.getAnnotation(OffsetOf.class);
             if (o != null) {
@@ -116,6 +115,7 @@
             }
             sizeof = align(sizeof, align);
         }
+        inited = true;
     }
 
     public static final int align(int size, int boundary)



Mime
View raw message