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 11:04:58 UTC
incubator-tamaya git commit: TAMAYA-53 Removed unneeded boxing of
integer values.
Repository: incubator-tamaya
Updated Branches:
refs/heads/master b44509c6c -> 3dc29e25b
TAMAYA-53 Removed unneeded boxing of integer values.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/3dc29e25
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/3dc29e25
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/3dc29e25
Branch: refs/heads/master
Commit: 3dc29e25b9dae72d7b38a58d1aafc0a59e5a5b5e
Parents: b44509c
Author: Oliver B. Fischer <pl...@apache.org>
Authored: Sat Jan 17 11:04:32 2015 +0100
Committer: Oliver B. Fischer <pl...@apache.org>
Committed: Sat Jan 17 11:04:32 2015 +0100
----------------------------------------------------------------------
.../java/org/apache/tamaya/modules/json/JSONPropertySource.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/3dc29e25/modules/json/src/main/java/org/apache/tamaya/modules/json/JSONPropertySource.java
----------------------------------------------------------------------
diff --git a/modules/json/src/main/java/org/apache/tamaya/modules/json/JSONPropertySource.java b/modules/json/src/main/java/org/apache/tamaya/modules/json/JSONPropertySource.java
index 0826bf7..3daa9e2 100644
--- a/modules/json/src/main/java/org/apache/tamaya/modules/json/JSONPropertySource.java
+++ b/modules/json/src/main/java/org/apache/tamaya/modules/json/JSONPropertySource.java
@@ -121,7 +121,7 @@ public class JSONPropertySource
this.values = values;
if (this.values.containsKey(TAMAYA_ORDINAL)) {
- int newPriority = Integer.valueOf(this.values.get(TAMAYA_ORDINAL)).intValue();
+ int newPriority = Integer.parseInt(this.values.get(TAMAYA_ORDINAL));
priority = newPriority;
this.values.remove(TAMAYA_ORDINAL);
}