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: remove unused imports and fields
Date Sat, 20 Dec 2014 16:15:43 GMT
Repository: incubator-tamaya
Updated Branches:
  refs/heads/master be0e7eee5 -> 0072535ab


remove unused imports and fields


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

Branch: refs/heads/master
Commit: 0072535abda3c7f3b2763fab4b59c32c0ef88dfe
Parents: be0e7ee
Author: otaviojava <otaviojava@people.apache.org>
Authored: Sat Dec 20 14:14:58 2014 -0200
Committer: otaviojava <otaviojava@people.apache.org>
Committed: Sat Dec 20 14:14:58 2014 -0200

----------------------------------------------------------------------
 .../org/apache/tamaya/annotation/WithCodec.java |  7 ++--
 .../tamaya/TestConfigServiceSingletonSpi.java   |  8 ++---
 .../TestPropertyAdaptersSingletonSpi.java       | 11 ++++---
 ...DefaultConfigurationManagerSingletonSpi.java |  8 -----
 .../core/internal/inject/ConfiguredField.java   | 17 +++++-----
 .../core/internal/inject/ConfiguredMethod.java  | 18 ++++-------
 .../core/internal/inject/ConfiguredType.java    | 27 ++++++++++------
 .../core/internal/inject/InjectionUtils.java    | 34 +++++++++++++-------
 .../properties/DefaultCodecsSingletonSpi.java   | 18 ++++++-----
 .../core/properties/AbstractPropertySource.java |  1 -
 .../tamaya/core/spi/PropertyAdapterService.java |  1 +
 .../tamaya/integration/cdi/ConfiguredClass.java | 27 ++++++++--------
 12 files changed, 95 insertions(+), 82 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/0072535a/api/src/main/java/org/apache/tamaya/annotation/WithCodec.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/org/apache/tamaya/annotation/WithCodec.java b/api/src/main/java/org/apache/tamaya/annotation/WithCodec.java
index 3a092b2..465d7b3 100644
--- a/api/src/main/java/org/apache/tamaya/annotation/WithCodec.java
+++ b/api/src/main/java/org/apache/tamaya/annotation/WithCodec.java
@@ -18,13 +18,13 @@
  */
 package org.apache.tamaya.annotation;
 
-import org.apache.tamaya.Codec;
-
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Retention;
 import java.lang.annotation.RetentionPolicy;
 import java.lang.annotation.Target;
 
+import org.apache.tamaya.Codec;
+
 /**
  * Annotation to define a type adapter to be used before injecting a configured keys, or
for applying changes.
  * This will override any other adapter for performing the type conversion before
@@ -39,6 +39,7 @@ public @interface WithCodec {
      * general org.apache.tamaya.core.internal registered. If no adapter is defined (default)
and no corresponding adapter is
      * registered, it is handled as a deployment error.
      */
-    Class<? extends Codec> value();
+    @SuppressWarnings("rawtypes")
+	Class<? extends Codec> value();
 
 }

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/0072535a/api/src/test/java/org/apache/tamaya/TestConfigServiceSingletonSpi.java
----------------------------------------------------------------------
diff --git a/api/src/test/java/org/apache/tamaya/TestConfigServiceSingletonSpi.java b/api/src/test/java/org/apache/tamaya/TestConfigServiceSingletonSpi.java
index 43c6248..2d0694f 100644
--- a/api/src/test/java/org/apache/tamaya/TestConfigServiceSingletonSpi.java
+++ b/api/src/test/java/org/apache/tamaya/TestConfigServiceSingletonSpi.java
@@ -18,14 +18,14 @@
  */
 package org.apache.tamaya;
 
-import org.apache.tamaya.spi.ConfigurationManagerSingletonSpi;
-
-import java.beans.PropertyChangeListener;
-import java.util.*;
+import java.util.HashMap;
+import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.function.Consumer;
 import java.util.function.Predicate;
 
+import org.apache.tamaya.spi.ConfigurationManagerSingletonSpi;
+
 /**
  * Created by Anatole on 09.09.2014.
  */

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/0072535a/api/src/test/java/org/apache/tamaya/TestPropertyAdaptersSingletonSpi.java
----------------------------------------------------------------------
diff --git a/api/src/test/java/org/apache/tamaya/TestPropertyAdaptersSingletonSpi.java b/api/src/test/java/org/apache/tamaya/TestPropertyAdaptersSingletonSpi.java
index b05c356..8aa6375 100644
--- a/api/src/test/java/org/apache/tamaya/TestPropertyAdaptersSingletonSpi.java
+++ b/api/src/test/java/org/apache/tamaya/TestPropertyAdaptersSingletonSpi.java
@@ -18,9 +18,6 @@
  */
 package org.apache.tamaya;
 
-import org.apache.tamaya.annotation.WithCodec;
-import org.apache.tamaya.spi.CodecsSingletonSpi;
-
 import java.math.BigDecimal;
 import java.math.BigInteger;
 import java.time.LocalDate;
@@ -32,13 +29,17 @@ import java.util.Map;
 import java.util.Objects;
 import java.util.concurrent.ConcurrentHashMap;
 
+import org.apache.tamaya.annotation.WithCodec;
+import org.apache.tamaya.spi.CodecsSingletonSpi;
+
 /**
  * Test implementation current {@link org.apache.tamaya.spi.CodecsSingletonSpi}, which provides
codecs
  * for some basic types.
  */
+@SuppressWarnings({"unchecked", "rawtypes"})
 public final class TestPropertyAdaptersSingletonSpi implements CodecsSingletonSpi {
 
-    private Map<Class, Codec<?>> codecs = new ConcurrentHashMap<>();
+	private Map<Class, Codec<?>> codecs = new ConcurrentHashMap<>();
 
     private TestPropertyAdaptersSingletonSpi(){
         register(char.class, (s) -> s.charAt(0), (ch) -> String.valueOf(ch));
@@ -68,7 +69,7 @@ public final class TestPropertyAdaptersSingletonSpi implements CodecsSingletonSp
     }
 
 
-    @Override
+	@Override
     public <T> Codec<T> register(Class<T> targetType, Codec<T> codec){
         Objects.requireNonNull(targetType);
         Objects.requireNonNull(codec);

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/0072535a/core/src/main/java/org/apache/tamaya/core/internal/config/DefaultConfigurationManagerSingletonSpi.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/tamaya/core/internal/config/DefaultConfigurationManagerSingletonSpi.java
b/core/src/main/java/org/apache/tamaya/core/internal/config/DefaultConfigurationManagerSingletonSpi.java
index d4d2f1d..dfb1cfa 100644
--- a/core/src/main/java/org/apache/tamaya/core/internal/config/DefaultConfigurationManagerSingletonSpi.java
+++ b/core/src/main/java/org/apache/tamaya/core/internal/config/DefaultConfigurationManagerSingletonSpi.java
@@ -39,17 +39,9 @@ import org.apache.tamaya.core.internal.inject.ConfigurationInjector;
 import org.apache.tamaya.core.properties.PropertySourceBuilder;
 import org.apache.tamaya.core.spi.ConfigurationProviderSpi;
 import org.apache.tamaya.core.spi.ExpressionEvaluator;
-
 import org.apache.tamaya.spi.ConfigurationManagerSingletonSpi;
 import org.apache.tamaya.spi.ServiceContext;
 
-import java.lang.annotation.Annotation;
-import java.lang.reflect.Proxy;
-import java.util.*;
-import java.util.concurrent.ConcurrentHashMap;
-import java.util.function.Consumer;
-import java.util.function.Predicate;
-
 
 /**
  * Default SPI that implements the behaviour of {@link org.apache.tamaya.spi.ConfigurationManagerSingletonSpi}.

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/0072535a/core/src/main/java/org/apache/tamaya/core/internal/inject/ConfiguredField.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/tamaya/core/internal/inject/ConfiguredField.java
b/core/src/main/java/org/apache/tamaya/core/internal/inject/ConfiguredField.java
index 581021b..51c3904 100644
--- a/core/src/main/java/org/apache/tamaya/core/internal/inject/ConfiguredField.java
+++ b/core/src/main/java/org/apache/tamaya/core/internal/inject/ConfiguredField.java
@@ -18,26 +18,25 @@
  */
 package org.apache.tamaya.core.internal.inject;
 
-import org.apache.tamaya.Codec;
+import java.lang.reflect.Field;
+import java.util.Collection;
+import java.util.List;
+import java.util.Objects;
+
 import org.apache.tamaya.ConfigException;
 import org.apache.tamaya.Configuration;
-import org.apache.tamaya.annotation.*;
+import org.apache.tamaya.annotation.ConfiguredProperties;
+import org.apache.tamaya.annotation.ConfiguredProperty;
+import org.apache.tamaya.annotation.DefaultAreas;
 import org.apache.tamaya.core.internal.Utils;
 
-import java.lang.reflect.Field;
-import java.util.*;
-import java.util.logging.Logger;
-import java.util.stream.Collectors;
-
 /**
  * Small class that contains and manages all information anc access to a configured field
and a concrete instance current
  * it (referenced by a weak reference). It also implements all aspects current keys filtering,
converting any applying the
  * final keys by reflection.
  */
-@SuppressWarnings("UnusedDeclaration")
 public class ConfiguredField {
 
-    private Logger LOG = Logger.getLogger(ConfiguredField.class.getName());
 
     /**
      * The configured field instance.

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/0072535a/core/src/main/java/org/apache/tamaya/core/internal/inject/ConfiguredMethod.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/tamaya/core/internal/inject/ConfiguredMethod.java
b/core/src/main/java/org/apache/tamaya/core/internal/inject/ConfiguredMethod.java
index 3b83ee5..8c1e0af 100644
--- a/core/src/main/java/org/apache/tamaya/core/internal/inject/ConfiguredMethod.java
+++ b/core/src/main/java/org/apache/tamaya/core/internal/inject/ConfiguredMethod.java
@@ -18,16 +18,14 @@
  */
 package org.apache.tamaya.core.internal.inject;
 
-import org.apache.tamaya.Codec;
-import org.apache.tamaya.ConfigException;
-import org.apache.tamaya.Configuration;
-import org.apache.tamaya.annotation.*;
-import org.apache.tamaya.core.internal.Utils;
-
 import java.lang.reflect.Method;
-import java.util.*;
-import java.util.logging.Logger;
-import java.util.stream.Collectors;
+import java.util.Collection;
+import java.util.Objects;
+
+import org.apache.tamaya.annotation.ConfiguredProperties;
+import org.apache.tamaya.annotation.ConfiguredProperty;
+import org.apache.tamaya.annotation.DefaultAreas;
+import org.apache.tamaya.core.internal.Utils;
 
 /**
  * Small class that contains and manages all information anc access to a configured field
and a concrete instance current
@@ -35,10 +33,8 @@ import java.util.stream.Collectors;
  * final keys by reflection.
  * Created by Anatole on 01.10.2014.
  */
-@SuppressWarnings("UnusedDeclaration")
 public class ConfiguredMethod {
 
-    private static final Logger LOG = Logger.getLogger(ConfiguredMethod.class.getName());
 
     /**
      * The configured field instance.

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/0072535a/core/src/main/java/org/apache/tamaya/core/internal/inject/ConfiguredType.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/tamaya/core/internal/inject/ConfiguredType.java
b/core/src/main/java/org/apache/tamaya/core/internal/inject/ConfiguredType.java
index ad89c3d..eef9923 100644
--- a/core/src/main/java/org/apache/tamaya/core/internal/inject/ConfiguredType.java
+++ b/core/src/main/java/org/apache/tamaya/core/internal/inject/ConfiguredType.java
@@ -18,20 +18,28 @@
  */
 package org.apache.tamaya.core.internal.inject;
 
-import org.apache.tamaya.ConfigException;
-import org.apache.tamaya.Configuration;
-import org.apache.tamaya.PropertySource;
-import org.apache.tamaya.annotation.*;
-
 import java.beans.PropertyChangeEvent;
 import java.lang.reflect.Field;
 import java.lang.reflect.Method;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+
+import org.apache.tamaya.ConfigException;
+import org.apache.tamaya.Configuration;
+import org.apache.tamaya.PropertySource;
+import org.apache.tamaya.annotation.ConfiguredProperties;
+import org.apache.tamaya.annotation.ConfiguredProperty;
+import org.apache.tamaya.annotation.DefaultAreas;
+import org.apache.tamaya.annotation.ObservesConfigChange;
 
 /**
  * Structure that contains and manages configuration related things for a configured type
registered.
  * Created by Anatole on 03.10.2014.
  */
+@SuppressWarnings({"rawtypes", "unchecked"})
 public class ConfiguredType {
     /** A list with all annotated instance variables. */
     private List<ConfiguredField> configuredFields = new ArrayList<>();
@@ -40,14 +48,15 @@ public class ConfiguredType {
     /** A list with all callback methods listening to config changes. */
     private List<ConfigChangeCallbackMethod> callbackMethods = new ArrayList<>();
     /** The basic type. */
-    private Class type;
+	private Class type;
 
     /**
      * Creates an instance of this class hereby evaluating the config annotations given for
later effective
      * injection (configuration) of instances.
      * @param type the instance type.
      */
-    public ConfiguredType(Class type) {
+
+	public ConfiguredType(Class type) {
         this.type = Objects.requireNonNull(type);
         initFields(type);
         initMethods(type);
@@ -158,7 +167,7 @@ public class ConfiguredType {
         return true;
     }
 
-    public static boolean isConfigured(Class type) {
+	public static boolean isConfigured(Class type) {
         if (type.getAnnotation(DefaultAreas.class) != null) {
             return true;
         }

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/0072535a/core/src/main/java/org/apache/tamaya/core/internal/inject/InjectionUtils.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/tamaya/core/internal/inject/InjectionUtils.java
b/core/src/main/java/org/apache/tamaya/core/internal/inject/InjectionUtils.java
index 3c073b6..e632ff9 100644
--- a/core/src/main/java/org/apache/tamaya/core/internal/inject/InjectionUtils.java
+++ b/core/src/main/java/org/apache/tamaya/core/internal/inject/InjectionUtils.java
@@ -1,20 +1,30 @@
 package org.apache.tamaya.core.internal.inject;
 
-import org.apache.tamaya.Codec;
-import org.apache.tamaya.ConfigException;
-import org.apache.tamaya.Configuration;
-import org.apache.tamaya.annotation.*;
-import org.apache.tamaya.core.internal.Utils;
-
 import java.lang.reflect.AnnotatedElement;
 import java.lang.reflect.Field;
 import java.lang.reflect.Member;
 import java.lang.reflect.Method;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.List;
+import java.util.ListIterator;
+
+import org.apache.tamaya.Codec;
+import org.apache.tamaya.ConfigException;
+import org.apache.tamaya.Configuration;
+import org.apache.tamaya.annotation.ConfiguredProperties;
+import org.apache.tamaya.annotation.ConfiguredProperty;
+import org.apache.tamaya.annotation.DefaultAreas;
+import org.apache.tamaya.annotation.DefaultValue;
+import org.apache.tamaya.annotation.WithCodec;
+import org.apache.tamaya.annotation.WithLoadPolicy;
+import org.apache.tamaya.core.internal.Utils;
 
 /**
  * Created by Anatole on 19.12.2014.
  */
+@SuppressWarnings("unchecked")
 final class InjectionUtils {
 
     private InjectionUtils(){}
@@ -118,18 +128,20 @@ final class InjectionUtils {
         return null;
     }
 
-    public static <T> T adaptValue(AnnotatedElement element, Class<T> targetType,
String configValue){
+
+	@SuppressWarnings("rawtypes")
+	public static <T> T adaptValue(AnnotatedElement element, Class<T> targetType,
String configValue){
         try {
             // Check for adapter/filter
-            T adaptedValue = null;
+//            T adaptedValue = null;
             WithCodec codecAnnot = element.getAnnotation(WithCodec.class);
             Class<? extends Codec> codecType;
             if (codecAnnot != null) {
                 codecType = codecAnnot.value();
                 if (!codecType.equals(Codec.class)) {
                     // TODO cache here...
-                    Codec<String> codec = codecType.newInstance();
-                    adaptedValue = (T) codec.deserialize(configValue);
+//                    Codec<String> codec = codecType.newInstance();
+//                    adaptedValue = (T) codec.deserialize(configValue);
                 }
             }
             if (String.class.equals(targetType)) {

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/0072535a/core/src/main/java/org/apache/tamaya/core/internal/properties/DefaultCodecsSingletonSpi.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/tamaya/core/internal/properties/DefaultCodecsSingletonSpi.java
b/core/src/main/java/org/apache/tamaya/core/internal/properties/DefaultCodecsSingletonSpi.java
index a257852..07959d2 100644
--- a/core/src/main/java/org/apache/tamaya/core/internal/properties/DefaultCodecsSingletonSpi.java
+++ b/core/src/main/java/org/apache/tamaya/core/internal/properties/DefaultCodecsSingletonSpi.java
@@ -18,11 +18,6 @@
  */
 package org.apache.tamaya.core.internal.properties;
 
-import org.apache.tamaya.Codec;
-import org.apache.tamaya.ConfigException;
-import org.apache.tamaya.annotation.WithCodec;
-import org.apache.tamaya.spi.CodecsSingletonSpi;
-
 import java.lang.reflect.Constructor;
 import java.lang.reflect.Method;
 import java.math.BigDecimal;
@@ -36,6 +31,11 @@ import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.function.Function;
 
+import org.apache.tamaya.Codec;
+import org.apache.tamaya.ConfigException;
+import org.apache.tamaya.annotation.WithCodec;
+import org.apache.tamaya.spi.CodecsSingletonSpi;
+
 /**
  * Default codecs singleton, which provides default codesc for all kind of classes out of
the box, which will be
  * instantiatable from configuration, if one of the following is given:
@@ -44,9 +44,11 @@ import java.util.function.Function;
  *     <li>have constructors taking a single String</li>
  * </ul>
  */
+@SuppressWarnings({"rawtypes", "unchecked"})
 public class DefaultCodecsSingletonSpi implements CodecsSingletonSpi {
 
-    private Map<Class,Codec> adapters = new ConcurrentHashMap<>();
+
+	private Map<Class,Codec> adapters = new ConcurrentHashMap<>();
 
     public DefaultCodecsSingletonSpi(){
         // Add default adapters
@@ -76,7 +78,7 @@ public class DefaultCodecsSingletonSpi implements CodecsSingletonSpi {
         register(ZoneId.class, ZoneId::of, ZoneId::getId);
     }
 
-    @Override
+	@Override
     public <T> Codec<T> register(Class<T> targetType, Codec<T> adapter){
         return adapters.put(targetType, adapter);
     }
@@ -125,7 +127,7 @@ public class DefaultCodecsSingletonSpi implements CodecsSingletonSpi {
                 decoder = (s) -> {
                     try{
                         constr.setAccessible(true);
-                        return (T)constr.newInstance(s);
+                        return constr.newInstance(s);
                     }
                     catch (Exception e){
                         throw new ConfigException("Failed to decode '"+s+"'", e);

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/0072535a/core/src/main/java/org/apache/tamaya/core/properties/AbstractPropertySource.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/tamaya/core/properties/AbstractPropertySource.java
b/core/src/main/java/org/apache/tamaya/core/properties/AbstractPropertySource.java
index ca4fa8e..8321afa 100644
--- a/core/src/main/java/org/apache/tamaya/core/properties/AbstractPropertySource.java
+++ b/core/src/main/java/org/apache/tamaya/core/properties/AbstractPropertySource.java
@@ -29,7 +29,6 @@ import java.util.SortedMap;
 import java.util.TreeMap;
 
 import org.apache.tamaya.MetaInfo;
-import org.apache.tamaya.MetaInfoBuilder;
 import org.apache.tamaya.PropertySource;
 
 /**

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/0072535a/core/src/main/java/org/apache/tamaya/core/spi/PropertyAdapterService.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/tamaya/core/spi/PropertyAdapterService.java b/core/src/main/java/org/apache/tamaya/core/spi/PropertyAdapterService.java
index 1c06afa..199f5a9 100644
--- a/core/src/main/java/org/apache/tamaya/core/spi/PropertyAdapterService.java
+++ b/core/src/main/java/org/apache/tamaya/core/spi/PropertyAdapterService.java
@@ -27,6 +27,7 @@ import java.util.Set;
 
 import org.apache.tamaya.Codec;
 
+@SuppressWarnings("unchecked")
 public interface PropertyAdapterService{
 
 	public default Codec<URL> getURLAdapter(){

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/0072535a/modules/integration/cdi/src/test/java/org/apache/tamaya/integration/cdi/ConfiguredClass.java
----------------------------------------------------------------------
diff --git a/modules/integration/cdi/src/test/java/org/apache/tamaya/integration/cdi/ConfiguredClass.java
b/modules/integration/cdi/src/test/java/org/apache/tamaya/integration/cdi/ConfiguredClass.java
index be65f0a..ea47dd6 100644
--- a/modules/integration/cdi/src/test/java/org/apache/tamaya/integration/cdi/ConfiguredClass.java
+++ b/modules/integration/cdi/src/test/java/org/apache/tamaya/integration/cdi/ConfiguredClass.java
@@ -20,22 +20,22 @@
  */
 package org.apache.tamaya.integration.cdi;
 
-import org.apache.tamaya.annotation.ObservesConfigChange;
-import org.apache.tamaya.annotation.ConfiguredProperty;
-import org.apache.tamaya.annotation.DefaultValue;
-import org.apache.tamaya.annotation.WithConfig;
-
-import javax.inject.Singleton;
 import java.beans.PropertyChangeEvent;
 import java.math.BigDecimal;
 
+import javax.inject.Singleton;
+
+import org.apache.tamaya.annotation.ConfiguredProperty;
+import org.apache.tamaya.annotation.DefaultValue;
+import org.apache.tamaya.annotation.ObservesConfigChange;
+
 /**
  * Created by Anatole on 08.09.2014.
  */
 @Singleton
 public class ConfiguredClass{
 
-    @WithConfig("test")
+//    @WithConfig("test")
     @ConfiguredProperty
     private String testProperty;
 
@@ -45,7 +45,7 @@ public class ConfiguredClass{
     @DefaultValue("The current \\${JAVA_HOME} env property is ${env:JAVA_HOME}.")
     String value1;
 
-    @WithConfig("test")
+//    @WithConfig("test")
     @ConfiguredProperty(keys = "foo")
     @ConfiguredProperty(keys = "a.b.c.key2")
     private String value2;
@@ -62,19 +62,19 @@ public class ConfiguredClass{
     @DefaultValue("5")
     private Integer int1;
 
-    @WithConfig("test")
+//    @WithConfig("test")
     @ConfiguredProperty
     private int int2;
 
-    @WithConfig("test")
+//    @WithConfig("test")
     @ConfiguredProperty
     private boolean booleanT;
 
-    @WithConfig("test")
+//    @WithConfig("test")
     @ConfiguredProperty(keys = "BD")
     private BigDecimal bigNumber;
 
-    @WithConfig("test")
+//    @WithConfig("test")
     @ConfiguredProperty(keys = "double1")
     private double doubleValue;
 
@@ -123,7 +123,8 @@ public class ConfiguredClass{
         return doubleValue;
     }
 
-    public String toString(){
+    @Override
+	public String toString(){
         return super.toString() + ": testProperty="+testProperty+", value1="+value1+", value2="+value2
                 +", int1="+int1+", int2="+int2+", booleanT="+booleanT+", bigNumber="+bigNumber
                 +", runtimeVersion="+runtimeVersion+", javaVersion2="+javaVersion2;


Mime
View raw message