You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/10/22 21:01:10 UTC

[commons-beanutils] branch master updated (e165d68 -> 78c4b25)

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git.


    from e165d68  [BEANUTILS-529] Log at the debug level instead of info.
     new ac0fe97  Remove trailing white spaces.
     new 0d02186  Use final.
     new 78c4b25  Remove unused imports.

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../apache/commons/beanutils2/converters/DateTimeConverter.java   | 8 ++++----
 .../java/org/apache/commons/beanutils2/bugs/Jira157TestCase.java  | 1 -
 .../commons/beanutils2/converters/DateConverterTestBase.java      | 2 +-
 .../commons/beanutils2/converters/PathConverterTestCase.java      | 4 ++--
 4 files changed, 7 insertions(+), 8 deletions(-)


[commons-beanutils] 01/03: Remove trailing white spaces.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git

commit ac0fe97f8cc7826fd8f2308c8949c53ba7435aa8
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Oct 22 16:57:50 2019 -0400

    Remove trailing white spaces.
---
 .../org/apache/commons/beanutils2/converters/DateConverterTestBase.java | 2 +-
 .../org/apache/commons/beanutils2/converters/PathConverterTestCase.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/beanutils2/converters/DateConverterTestBase.java b/src/test/java/org/apache/commons/beanutils2/converters/DateConverterTestBase.java
index 1b75bea..b04e085 100644
--- a/src/test/java/org/apache/commons/beanutils2/converters/DateConverterTestBase.java
+++ b/src/test/java/org/apache/commons/beanutils2/converters/DateConverterTestBase.java
@@ -532,7 +532,7 @@ public abstract class DateConverterTestBase extends TestCase {
     java.sql.Timestamp toSqlTimestamp(final Calendar calendar) {
         return new java.sql.Timestamp(getTimeInMillis(calendar));
     }
-    
+
     /**
      * Convert a Calendar to a java.time.LocalDateTime
      * @param calendar The calendar object to convert
diff --git a/src/test/java/org/apache/commons/beanutils2/converters/PathConverterTestCase.java b/src/test/java/org/apache/commons/beanutils2/converters/PathConverterTestCase.java
index 5c53e60..adb8dd9 100644
--- a/src/test/java/org/apache/commons/beanutils2/converters/PathConverterTestCase.java
+++ b/src/test/java/org/apache/commons/beanutils2/converters/PathConverterTestCase.java
@@ -83,7 +83,7 @@ public class PathConverterTestCase extends TestCase {
             "from String",
             "from String",
         };
-        
+
         // get the separator so test works on Windows or *nix
         String separator = File.pathSeparator;
 


[commons-beanutils] 03/03: Remove unused imports.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git

commit 78c4b25914c7929b21fe3f0f17c69d01f684bbbd
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Oct 22 17:00:17 2019 -0400

    Remove unused imports.
---
 src/test/java/org/apache/commons/beanutils2/bugs/Jira157TestCase.java | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/beanutils2/bugs/Jira157TestCase.java b/src/test/java/org/apache/commons/beanutils2/bugs/Jira157TestCase.java
index f100a2a..8e27c08 100644
--- a/src/test/java/org/apache/commons/beanutils2/bugs/Jira157TestCase.java
+++ b/src/test/java/org/apache/commons/beanutils2/bugs/Jira157TestCase.java
@@ -21,7 +21,6 @@ import java.util.Map;
 
 import org.apache.commons.beanutils2.BeanUtils;
 import org.apache.commons.beanutils2.BeanUtilsBean;
-import org.apache.commons.beanutils2.PropertyUtilsBean;
 import org.apache.commons.beanutils2.SuppressPropertiesBeanIntrospector;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;


[commons-beanutils] 02/03: Use final.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git

commit 0d02186d76f6e7a49b24eec57c1f7ec36570449f
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Oct 22 16:58:20 2019 -0400

    Use final.
---
 .../apache/commons/beanutils2/converters/DateTimeConverter.java   | 8 ++++----
 .../commons/beanutils2/converters/PathConverterTestCase.java      | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/apache/commons/beanutils2/converters/DateTimeConverter.java b/src/main/java/org/apache/commons/beanutils2/converters/DateTimeConverter.java
index a3e362c..9b2e1cf 100644
--- a/src/main/java/org/apache/commons/beanutils2/converters/DateTimeConverter.java
+++ b/src/main/java/org/apache/commons/beanutils2/converters/DateTimeConverter.java
@@ -442,25 +442,25 @@ public abstract class DateTimeConverter extends AbstractConverter {
 
         // java.time.LocalDateTime
         if (type.equals(LocalDate.class)) {
-        	LocalDate localDate =  Instant.ofEpochMilli(value).atZone(getZoneId()).toLocalDate();
+        	final LocalDate localDate =  Instant.ofEpochMilli(value).atZone(getZoneId()).toLocalDate();
             return type.cast(localDate);
         }
 
         // java.time.LocalDateTime
         if (type.equals(LocalDateTime.class)) {
-        	LocalDateTime localDateTime =  Instant.ofEpochMilli(value).atZone(getZoneId()).toLocalDateTime();
+        	final LocalDateTime localDateTime =  Instant.ofEpochMilli(value).atZone(getZoneId()).toLocalDateTime();
             return type.cast(localDateTime);
         }
 
         // java.time.ZonedDateTime
         if (type.equals(ZonedDateTime.class)) {
-        	ZonedDateTime zonedDateTime =  ZonedDateTime.ofInstant(Instant.ofEpochMilli(value), getZoneId());
+        	final ZonedDateTime zonedDateTime =  ZonedDateTime.ofInstant(Instant.ofEpochMilli(value), getZoneId());
             return type.cast(zonedDateTime);
         }
 
         // java.time.OffsetDateTime
         if (type.equals(OffsetDateTime.class)) {
-        	OffsetDateTime offsetDateTime =  OffsetDateTime.ofInstant(Instant.ofEpochMilli(value), getZoneId());
+        	final OffsetDateTime offsetDateTime =  OffsetDateTime.ofInstant(Instant.ofEpochMilli(value), getZoneId());
             return type.cast(offsetDateTime);
         }
 
diff --git a/src/test/java/org/apache/commons/beanutils2/converters/PathConverterTestCase.java b/src/test/java/org/apache/commons/beanutils2/converters/PathConverterTestCase.java
index adb8dd9..c169381 100644
--- a/src/test/java/org/apache/commons/beanutils2/converters/PathConverterTestCase.java
+++ b/src/test/java/org/apache/commons/beanutils2/converters/PathConverterTestCase.java
@@ -85,7 +85,7 @@ public class PathConverterTestCase extends TestCase {
         };
 
         // get the separator so test works on Windows or *nix
-        String separator = File.pathSeparator;
+        final String separator = File.pathSeparator;
 
         final Object[] input = {
         	separator + "foo"+separator+"bar"+separator+"baz",