tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From otavioj...@apache.org
Subject incubator-tamaya git commit: removes unnecessary boxing
Date Sun, 07 Dec 2014 22:42:54 GMT
Repository: incubator-tamaya
Updated Branches:
  refs/heads/master 014ceae86 -> 84481c8af


removes unnecessary boxing


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

Branch: refs/heads/master
Commit: 84481c8af08775aafdd9251d6876fa78f7e94dc9
Parents: 014ceae
Author: otaviojava <otaviojava@people.apache.org>
Authored: Sun Dec 7 20:42:40 2014 -0200
Committer: otaviojava <otaviojava@people.apache.org>
Committed: Sun Dec 7 20:42:40 2014 -0200

----------------------------------------------------------------------
 .../ClassLoaderDependentApplicationEnvironmentProvider.java  | 2 +-
 .../env/ClassLoaderDependentEarEnvironmentProvider.java      | 2 +-
 .../tamaya/core/internal/resources/io/AntPathMatcher.java    | 8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/84481c8a/core/src/main/java/org/apache/tamaya/core/internal/env/ClassLoaderDependentApplicationEnvironmentProvider.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/tamaya/core/internal/env/ClassLoaderDependentApplicationEnvironmentProvider.java
b/core/src/main/java/org/apache/tamaya/core/internal/env/ClassLoaderDependentApplicationEnvironmentProvider.java
index 24785e9..f6afe65 100644
--- a/core/src/main/java/org/apache/tamaya/core/internal/env/ClassLoaderDependentApplicationEnvironmentProvider.java
+++ b/core/src/main/java/org/apache/tamaya/core/internal/env/ClassLoaderDependentApplicationEnvironmentProvider.java
@@ -69,7 +69,7 @@ public class ClassLoaderDependentApplicationEnvironmentProvider implements
Envir
                 "classpath:META-INF/env/application.properties", "classpath:META-INF/env/application.xml",
"classpath:META-INF/env/application.ini");
         available = !propertyUris.isEmpty();
         this.environmentAvailable.put(cl, available);
-        return available.booleanValue();
+        return available;
     }
 
     @Override

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/84481c8a/core/src/main/java/org/apache/tamaya/core/internal/env/ClassLoaderDependentEarEnvironmentProvider.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/tamaya/core/internal/env/ClassLoaderDependentEarEnvironmentProvider.java
b/core/src/main/java/org/apache/tamaya/core/internal/env/ClassLoaderDependentEarEnvironmentProvider.java
index 6e8c3df..7bb7e3a 100644
--- a/core/src/main/java/org/apache/tamaya/core/internal/env/ClassLoaderDependentEarEnvironmentProvider.java
+++ b/core/src/main/java/org/apache/tamaya/core/internal/env/ClassLoaderDependentEarEnvironmentProvider.java
@@ -72,7 +72,7 @@ public class ClassLoaderDependentEarEnvironmentProvider implements EnvironmentPr
                 "classpath:META-INF/env/ear.properties", "classpath:META-INF/env/ear.xml",
"classpath:META-INF/env/ear.ini");
         available = !propertyUris.isEmpty();
         this.environmentAvailable.put(cl, available);
-        return available.booleanValue();
+        return available;
     }
 
     @Override

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/84481c8a/core/src/main/java/org/apache/tamaya/core/internal/resources/io/AntPathMatcher.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/tamaya/core/internal/resources/io/AntPathMatcher.java
b/core/src/main/java/org/apache/tamaya/core/internal/resources/io/AntPathMatcher.java
index 0e637a2..73eeb9d 100644
--- a/core/src/main/java/org/apache/tamaya/core/internal/resources/io/AntPathMatcher.java
+++ b/core/src/main/java/org/apache/tamaya/core/internal/resources/io/AntPathMatcher.java
@@ -280,7 +280,7 @@ class AntPathMatcher {
 	protected String[] tokenizePattern(String pattern) {
 		String[] tokenized = null;
 		Boolean cachePatterns = this.cachePatterns;
-		if (cachePatterns == null || cachePatterns.booleanValue()) {
+		if (cachePatterns == null || cachePatterns) {
 			tokenized = this.tokenizedPatternCache.get(pattern);
 		}
 		if (tokenized == null) {
@@ -292,7 +292,7 @@ class AntPathMatcher {
 				deactivatePatternCache();
 				return tokenized;
 			}
-			if (cachePatterns == null || cachePatterns.booleanValue()) {
+			if (cachePatterns == null || cachePatterns) {
 				this.tokenizedPatternCache.put(pattern, tokenized);
 			}
 		}
@@ -334,7 +334,7 @@ class AntPathMatcher {
 	protected AntPathStringMatcher getStringMatcher(String pattern) {
 		AntPathStringMatcher matcher = null;
 		Boolean cachePatterns = this.cachePatterns;
-		if (cachePatterns == null || cachePatterns.booleanValue()) {
+		if (cachePatterns == null || cachePatterns) {
 			matcher = this.stringMatcherCache.get(pattern);
 		}
 		if (matcher == null) {
@@ -346,7 +346,7 @@ class AntPathMatcher {
 				deactivatePatternCache();
 				return matcher;
 			}
-			if (cachePatterns == null || cachePatterns.booleanValue()) {
+			if (cachePatterns == null || cachePatterns) {
 				this.stringMatcherCache.put(pattern, matcher);
 			}
 		}


Mime
View raw message