tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject incubator-tamaya git commit: adding fromString in factory methods since it seems quite common in specs as well
Date Mon, 05 Jan 2015 07:32:40 GMT
Repository: incubator-tamaya
Updated Branches:
  refs/heads/master ed3f70638 -> 5bd97c9c2


adding fromString in factory methods since it seems quite common in specs as well


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/5bd97c9c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/5bd97c9c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/5bd97c9c

Branch: refs/heads/master
Commit: 5bd97c9c2dff318b3066555e388deb4f376cfbaf
Parents: ed3f706
Author: Romain Manni-Bucau <rmannibucau@apache.org>
Authored: Mon Jan 5 08:32:16 2015 +0100
Committer: Romain Manni-Bucau <rmannibucau@apache.org>
Committed: Mon Jan 5 08:32:16 2015 +0100

----------------------------------------------------------------------
 .../org/apache/tamaya/core/internal/PropertyConverterManager.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/5bd97c9c/core/src/main/java/org/apache/tamaya/core/internal/PropertyConverterManager.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/tamaya/core/internal/PropertyConverterManager.java
b/core/src/main/java/org/apache/tamaya/core/internal/PropertyConverterManager.java
index 88e68e3..359dff7 100644
--- a/core/src/main/java/org/apache/tamaya/core/internal/PropertyConverterManager.java
+++ b/core/src/main/java/org/apache/tamaya/core/internal/PropertyConverterManager.java
@@ -192,7 +192,7 @@ public class PropertyConverterManager {
      */
     protected <T> PropertyConverter<T> createDefaultPropertyConverter(Class<T>
targetType) {
         PropertyConverter<T> converter = null;
-        Method factoryMethod = getFactoryMethod(targetType, "of", "valueOf", "instanceOf",
"getInstance", "from", "parse");
+        Method factoryMethod = getFactoryMethod(targetType, "of", "valueOf", "instanceOf",
"getInstance", "from", "fromString", "parse");
         if (factoryMethod != null) {
             converter = (s) -> {
                 try {


Mime
View raw message