Author: rdonkin
Date: Fri Dec  6 19:16:52 2013
New Revision: 1548676

URL: http://svn.apache.org/r1548676
Log:
Refactor, ordering constructor parameters and methods

Modified:
    
creadur/rat/branches/gsoc/apache-rat-api/src/main/java/org/apache/rat/api/domain/LicenseFamily.java
    
creadur/rat/branches/gsoc/apache-rat-api/src/main/java/org/apache/rat/api/domain/LicenseFamilyBuilder.java

Modified: 
creadur/rat/branches/gsoc/apache-rat-api/src/main/java/org/apache/rat/api/domain/LicenseFamily.java
URL: 
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-api/src/main/java/org/apache/rat/api/domain/LicenseFamily.java?rev=1548676&r1=1548675&r2=1548676&view=diff
==============================================================================
--- 
creadur/rat/branches/gsoc/apache-rat-api/src/main/java/org/apache/rat/api/domain/LicenseFamily.java
 (original)
+++ 
creadur/rat/branches/gsoc/apache-rat-api/src/main/java/org/apache/rat/api/domain/LicenseFamily.java
 Fri Dec  6 19:16:52 2013
@@ -47,19 +47,18 @@ public final class LicenseFamily {
 
     /**
      * Constructs an immutable license family.
-     * 
-     * @param notes
-     *            further information associated with the license family. Human
-     *            readable. Possibly null.
-     * @param category
-     *            the name of the category containing this license family.
-     *            Recommended that this be an URI. Possibly null.
      * @param name
      *            the name uniquely identifying this family. Recommended that
      *            this be an URI. Not null.
+     * @param category
+     *            the name of the category containing this license family.
+     *            Recommended that this be an URI. Possibly null.
+     * @param notes
+     *            further information associated with the license family. Human
+     *            readable. Possibly null.
      */
-    public LicenseFamily(final String notes, final String category,
-            final String name) {
+    public LicenseFamily(final String name, final String category,
+            final String notes) {
         super();
         this.notes = notes;
         this.category = category;

Modified: 
creadur/rat/branches/gsoc/apache-rat-api/src/main/java/org/apache/rat/api/domain/LicenseFamilyBuilder.java
URL: 
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-api/src/main/java/org/apache/rat/api/domain/LicenseFamilyBuilder.java?rev=1548676&r1=1548675&r2=1548676&view=diff
==============================================================================
--- 
creadur/rat/branches/gsoc/apache-rat-api/src/main/java/org/apache/rat/api/domain/LicenseFamilyBuilder.java
 (original)
+++ 
creadur/rat/branches/gsoc/apache-rat-api/src/main/java/org/apache/rat/api/domain/LicenseFamilyBuilder.java
 Fri Dec  6 19:16:52 2013
@@ -47,6 +47,15 @@ public final class LicenseFamilyBuilder 
     }
 
     /**
+     * Builds a family.
+     * 
+     * @return not null
+     */
+    public LicenseFamily build() {
+        return new LicenseFamily(this.name, this.category, this.notes);
+    }
+
+    /**
      * Builds family with further information associated with the license
      * family. Human readable.
      * 
@@ -60,15 +69,6 @@ public final class LicenseFamilyBuilder 
     }
 
     /**
-     * Builds a family.
-     * 
-     * @return not null
-     */
-    public LicenseFamily build() {
-        return new LicenseFamily(this.notes, this.category, this.name);
-    }
-
-    /**
      * Builds family with category containing this license family. Choosing a
      * suitable URI is recommended
      * 


Reply via email to