< prev index next >

src/jdk.jfr/share/classes/jdk/jfr/internal/util/ValueFormatter.java

Print this page

255                 type = "float";
256                 break;
257             case 'S':
258                 type = "short";
259                 break;
260             case 'C':
261                 type = "char";
262                 break;
263             case 'B':
264                 type = "byte";
265                 break;
266             default:
267                 type = "<unknown-descriptor-type>";
268             }
269             descriptors.add(type + arrayBrackets);
270         }
271         return descriptors;
272     }
273 
274     public static String formatTimestamp(Instant instant) {



275         return LocalTime.ofInstant(instant, ZoneId.systemDefault()).format(DATE_FORMAT);
276     }
277 }

255                 type = "float";
256                 break;
257             case 'S':
258                 type = "short";
259                 break;
260             case 'C':
261                 type = "char";
262                 break;
263             case 'B':
264                 type = "byte";
265                 break;
266             default:
267                 type = "<unknown-descriptor-type>";
268             }
269             descriptors.add(type + arrayBrackets);
270         }
271         return descriptors;
272     }
273 
274     public static String formatTimestamp(Instant instant) {
275         if (Instant.MIN.equals(instant)) {
276             return "N/A";
277         }
278         return LocalTime.ofInstant(instant, ZoneId.systemDefault()).format(DATE_FORMAT);
279     }
280 }
< prev index next >