Skip to content

Commit 182221e

Browse files
committed
Fix other minor issues
1 parent d9a8d32 commit 182221e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/org/gephi/graph/api/AttributeUtils.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public class AttributeUtils {
115115
private static final Map<ZoneId, DateTimeFormatter> DATE_TIME_PRINTERS_BY_TIMEZONE;
116116
private static final Map<ZoneId, DateTimeFormatter> DATE_TIME_PARSERS_BY_TIMEZONE;
117117

118-
// Collectio types to speedup lookup
118+
// Collection types to speedup lookup
119119
private static final Set<Class> TYPED_LIST_TYPES;
120120
private static final Set<Class> TYPED_SET_TYPES;
121121
private static final Set<Class> TYPED_MAP_TYPES;
@@ -355,7 +355,7 @@ public static String print(Object value, TimeFormat timeFormat, ZoneId zoneId) {
355355
return ((TimeMap) value).toString(timeFormat, zoneId);
356356
}
357357
if (value instanceof Instant) {
358-
printDate((Instant) value, zoneId);
358+
return value.toString();
359359
}
360360
if (value.getClass().isArray()) {
361361
return printArray(value);
@@ -814,8 +814,8 @@ private static List getStandardizedList(List list) {
814814
}
815815

816816
private static Set getStandardizedSet(Set set) {
817-
Class listClass = set.getClass();
818-
if (TYPED_LIST_TYPES.contains(listClass)) {
817+
Class setClass = set.getClass();
818+
if (TYPED_SET_TYPES.contains(setClass)) {
819819
return set;
820820
}
821821

@@ -1276,7 +1276,7 @@ public static Object copy(Object obj) {
12761276

12771277
// Instant
12781278
if (typeClass.equals(Instant.class)) {
1279-
return Instant.from((Instant) obj);
1279+
return obj;
12801280
}
12811281

12821282
// Interval types:

0 commit comments

Comments
 (0)