felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r1788273 - in /felix/trunk/converter/converter/src/main/java/org/apache/felix/converter/impl: AdapterImpl.java ConvertingImpl.java
Date Thu, 23 Mar 2017 15:54:34 GMT
Author: davidb
Date: Thu Mar 23 15:54:34 2017
New Revision: 1788273

URL: http://svn.apache.org/viewvc?rev=1788273&view=rev
Log:
Felix Converter - add keysIgnoreCase() which is a new method in the API

Modified:
    felix/trunk/converter/converter/src/main/java/org/apache/felix/converter/impl/AdapterImpl.java
    felix/trunk/converter/converter/src/main/java/org/apache/felix/converter/impl/ConvertingImpl.java

Modified: felix/trunk/converter/converter/src/main/java/org/apache/felix/converter/impl/AdapterImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/converter/converter/src/main/java/org/apache/felix/converter/impl/AdapterImpl.java?rev=1788273&r1=1788272&r2=1788273&view=diff
==============================================================================
--- felix/trunk/converter/converter/src/main/java/org/apache/felix/converter/impl/AdapterImpl.java
(original)
+++ felix/trunk/converter/converter/src/main/java/org/apache/felix/converter/impl/AdapterImpl.java
Thu Mar 23 15:54:34 2017
@@ -78,6 +78,12 @@ public class AdapterImpl implements Inte
         }
 
         @Override
+        public Converting keysIgnoreCase() {
+            del.keysIgnoreCase();
+            return this;
+        }
+
+        @Override
         public void setConverter(Converter c) {
             del.setConverter(c);
         }

Modified: felix/trunk/converter/converter/src/main/java/org/apache/felix/converter/impl/ConvertingImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/converter/converter/src/main/java/org/apache/felix/converter/impl/ConvertingImpl.java?rev=1788273&r1=1788272&r2=1788273&view=diff
==============================================================================
--- felix/trunk/converter/converter/src/main/java/org/apache/felix/converter/impl/ConvertingImpl.java
(original)
+++ felix/trunk/converter/converter/src/main/java/org/apache/felix/converter/impl/ConvertingImpl.java
Thu Mar 23 15:54:34 2017
@@ -66,7 +66,8 @@ public class ConvertingImpl implements C
     volatile InternalConverter converter;
     private volatile Object object;
     private volatile Object defaultValue;
-    private volatile boolean hasDefault;
+    private volatile boolean hasDefault = false;
+    private volatile boolean keysIgnoreCase = false;
     volatile Class<?> sourceClass;
     volatile Class<?> sourceAsClass;
     private volatile Class<?> targetClass;
@@ -141,6 +142,13 @@ public class ConvertingImpl implements C
 
         return this;
     }
+
+    @Override
+    public Converting keysIgnoreCase() {
+        keysIgnoreCase = true;
+
+        return this;
+    }
 
     @Override
     public void setConverter(Converter c) {



Mime
View raw message