You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tamaya.apache.org by pl...@apache.org on 2015/01/17 00:06:31 UTC

incubator-tamaya git commit: TAMAYA-53 Fixed issue concerning boxing/unboxing of values found by FindBugs.

Repository: incubator-tamaya
Updated Branches:
  refs/heads/master 103cb951b -> 4204fd659


TAMAYA-53 Fixed issue concerning boxing/unboxing of values found by FindBugs.


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

Branch: refs/heads/master
Commit: 4204fd65999aefce3a315b753504fcfa308da54e
Parents: 103cb95
Author: Oliver B. Fischer <pl...@apache.org>
Authored: Sat Jan 17 00:05:47 2015 +0100
Committer: Oliver B. Fischer <pl...@apache.org>
Committed: Sat Jan 17 00:05:47 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/4204fd65/java8/core/src/main/java/org/apache/tamaya/core/propertysource/BasePropertySource.java
----------------------------------------------------------------------
diff --git a/java8/core/src/main/java/org/apache/tamaya/core/propertysource/BasePropertySource.java b/java8/core/src/main/java/org/apache/tamaya/core/propertysource/BasePropertySource.java
index 7fe3a46..23fb27c 100644
--- a/java8/core/src/main/java/org/apache/tamaya/core/propertysource/BasePropertySource.java
+++ b/java8/core/src/main/java/org/apache/tamaya/core/propertysource/BasePropertySource.java
@@ -65,7 +65,7 @@ public abstract class BasePropertySource implements PropertySource {
         if (ordinal != null) {
 
             try {
-                this.ordinal = Integer.valueOf(ordinal);
+                this.ordinal = Integer.parseInt(ordinal);
             } catch (NumberFormatException e) {
                 LOG.log(Level.WARNING,
                         "Specified {0} is not a valid Integer value: {1} - using defaultOrdinal {2}",