Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TFaga committed Dec 19, 2017
1 parent be9ddf3 commit 17f324c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
12 changes: 7 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,18 @@
<artifactId>kumuluzee-common</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-cdi-weld</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.eclipse.microprofile.config</groupId>
<artifactId>microprofile-config-api</artifactId>
<version>${microprofile-config.version}</version>
</dependency>

<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-cdi-weld</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ public <T> T convert(String value, Class<T> asType) {
}

private Converter getConverter(Class asType) {

if (asType.equals(boolean.class)) {
asType = Boolean.class;
} else if (asType.equals(double.class)) {
Expand All @@ -156,9 +157,11 @@ private Converter getConverter(Class asType) {
}

Converter converter = converters.get(asType);

if (converter == null) {
throw new IllegalArgumentException("No Converter registered for class " + asType);
}

return converter;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class ConfigPropertyProducer {

@Dependent
@ConfigProperty
public static final Object getGenericProperty(InjectionPoint ip) {
public static Object getGenericProperty(InjectionPoint ip) {

ConfigProperty configPropertyAnnotation = ip.getAnnotated().getAnnotation(ConfigProperty.class);
String configurationPropertyKey = configPropertyAnnotation.name();
Expand Down

0 comments on commit 17f324c

Please sign in to comment.