Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package io.github.perplexhub.rsql;

import java.lang.reflect.*;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.OffsetDateTime;
import java.time.ZonedDateTime;
import java.time.*;
import java.time.format.DateTimeParseException;
import java.util.*;
import java.util.Map.Entry;
Expand Down Expand Up @@ -80,6 +77,8 @@ protected Object convert(String source, Class targetType) {
object = Boolean.valueOf(source);
} else if (targetType.isEnum()) {
object = Enum.valueOf(targetType, source);
} else if (targetType.equals(Instant.class)) {
object = Instant.parse(source);
} else {
Constructor<?> cons = (Constructor<?>) targetType.getConstructor(new Class<?>[] { String.class });
object = cons.newInstance(new Object[] { source });
Expand Down