commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r1392544 - in /commons/sandbox/nabla/trunk: ./ src/main/java/org/apache/commons/nabla/ src/main/java/org/apache/commons/nabla/caching/ src/main/java/org/apache/commons/nabla/forward/ src/main/java/org/apache/commons/nabla/forward/analysis/
Date Mon, 01 Oct 2012 19:30:20 GMT
Author: luc
Date: Mon Oct  1 19:30:20 2012
New Revision: 1392544

URL: http://svn.apache.org/viewvc?rev=1392544&view=rev
Log:
Fixed checkstyle warnings.

Modified:
    commons/sandbox/nabla/trunk/pom.xml
    commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/NablaMessages.java
    commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/caching/FetchDifferentiator.java
    commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/ForwardModeDifferentiator.java
    commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/ClassDifferentiator.java

Modified: commons/sandbox/nabla/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/pom.xml?rev=1392544&r1=1392543&r2=1392544&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/pom.xml (original)
+++ commons/sandbox/nabla/trunk/pom.xml Mon Oct  1 19:30:20 2012
@@ -163,7 +163,7 @@
                 <configuration>
                     <configLocation>${basedir}/checkstyle.xml</configLocation>
                     <enableRulesSummary>false</enableRulesSummary>
-                    <headerFile>${basedir}/license-header.txt</headerFile>
+                    <headerLocation>${basedir}/license-header.txt</headerLocation>
                 </configuration>
             </plugin>
             <plugin>

Modified: commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/NablaMessages.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/NablaMessages.java?rev=1392544&r1=1392543&r2=1392544&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/NablaMessages.java
(original)
+++ commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/NablaMessages.java
Mon Oct  1 19:30:20 2012
@@ -84,7 +84,7 @@ public enum NablaMessages implements Loc
     public String getLocalizedString(final Locale locale) {
         try {
             final String path = NablaMessages.class.getName().replaceAll("\\.", "/");
-            ResourceBundle bundle =
+            final ResourceBundle bundle =
                     ResourceBundle.getBundle("assets/" + path, locale);
             if (bundle.getLocale().getLanguage().equals(locale.getLanguage())) {
                 // the value of the resource is the translated format

Modified: commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/caching/FetchDifferentiator.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/caching/FetchDifferentiator.java?rev=1392544&r1=1392543&r2=1392544&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/caching/FetchDifferentiator.java
(original)
+++ commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/caching/FetchDifferentiator.java
Mon Oct  1 19:30:20 2012
@@ -28,7 +28,7 @@ import org.apache.commons.math3.analysis
 public class FetchDifferentiator implements UnivariateVectorFunctionDifferentiator {
 
     /** {@inheritDoc} */
-    public UnivariateDifferentiableVectorFunction differentiate(UnivariateVectorFunction
function) {
+    public UnivariateDifferentiableVectorFunction differentiate(final UnivariateVectorFunction
function) {
 
         // TODO implement differentiation by fetching an already derived class
         return null;

Modified: commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/ForwardModeDifferentiator.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/ForwardModeDifferentiator.java?rev=1392544&r1=1392543&r2=1392544&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/ForwardModeDifferentiator.java
(original)
+++ commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/ForwardModeDifferentiator.java
Mon Oct  1 19:30:20 2012
@@ -189,7 +189,7 @@ public class ForwardModeDifferentiator i
             derived.accept(writer);
             final byte[] bytecode = writer.toByteArray();
 
-            Class<? extends UnivariateDifferentiableFunction> dClass =
+            final Class<? extends UnivariateDifferentiableFunction> dClass =
                     new DerivativeLoader(differentiableClass).defineClass(name, bytecode);
             byteCodeMap.put(name, bytecode);
             return dClass;
@@ -217,7 +217,7 @@ public class ForwardModeDifferentiator i
          */
         @SuppressWarnings("unchecked")
         public Class<? extends UnivariateDifferentiableFunction>
-        defineClass(final String name, byte[] bytecode) {
+        defineClass(final String name, final byte[] bytecode) {
             return (Class<? extends UnivariateDifferentiableFunction>) defineClass(name,
bytecode, 0, bytecode.length);
         }
     }

Modified: commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/ClassDifferentiator.java
URL: http://svn.apache.org/viewvc/commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/ClassDifferentiator.java?rev=1392544&r1=1392543&r2=1392544&view=diff
==============================================================================
--- commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/ClassDifferentiator.java
(original)
+++ commons/sandbox/nabla/trunk/src/main/java/org/apache/commons/nabla/forward/analysis/ClassDifferentiator.java
Mon Oct  1 19:30:20 2012
@@ -79,7 +79,7 @@ public class ClassDifferentiator {
      * @exception DifferentiationException if class cannot be differentiated
      * @throws IOException if class cannot be read
      */
-    public ClassDifferentiator(Class<? extends UnivariateFunction> primitiveClass,
+    public ClassDifferentiator(final Class<? extends UnivariateFunction> primitiveClass,
                                final Set<String> mathClasses)
         throws DifferentiationException, IOException {
 
@@ -148,7 +148,7 @@ public class ClassDifferentiator {
 
                 final MethodDifferentiator differentiator =
                         new MethodDifferentiator(mathClasses, classNode.name);
-                 differentiator.differentiate(primitiveNode.name, method);
+                differentiator.differentiate(primitiveNode.name, method);
                 classNode.methods.add(method);
 
             }
@@ -166,7 +166,7 @@ public class ClassDifferentiator {
     /** Add the primitive field.
      */
     private void addPrimitiveField() {
-        FieldNode primitiveField =
+        final FieldNode primitiveField =
             new FieldNode(Opcodes.ACC_PRIVATE | Opcodes.ACC_FINAL | Opcodes.ACC_SYNTHETIC,
                           PRIMITIVE_FIELD, Type.getDescriptor(primitiveClass), null, null);
         classNode.fields.add(primitiveField);



Mime
View raw message