Something went wrong. Try again.
The Minecraft: Java Edition decompiled source code.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283package com.mojang.util;
import com.google.gson.TypeAdapter;import com.google.gson.stream.JsonReader;import com.google.gson.stream.JsonWriter;import java.io.IOException;import java.time.Instant;import java.time.format.DateTimeFormatter;
public class InstantTypeAdapter extends TypeAdapter<Instant> { private static final DateTimeFormatter FORMATTER = DateTimeFormatter.ISO_INSTANT;
public InstantTypeAdapter() { // $VF: Couldn't be decompiled // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!) // java.lang.NullPointerException: Cannot read field "type" because "type" is null // at org.vineflower.variablerenaming.TinyNameProvider.getNewName(TinyNameProvider.java:66) // at org.vineflower.variablerenaming.TinyNameProvider.lambda$rename$1(TinyNameProvider.java:53) // at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1228) // at org.vineflower.variablerenaming.TinyNameProvider.rename(TinyNameProvider.java:53) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.propogateLVTs(VarDefinitionHelper.java:1030) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.setVarDefinitions(VarDefinitionHelper.java:246) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarProcessor.setVarDefinitions(VarProcessor.java:53) // at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:422) // // Bytecode: // 0: aload 0 // 1: invokespecial com/google/gson/TypeAdapter.<init> ()V // 4: return }
public void write(JsonWriter jsonWriter, Instant instant) throws IOException { // $VF: Couldn't be decompiled // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!) // java.lang.NullPointerException: Cannot read field "type" because "type" is null // at org.vineflower.variablerenaming.TinyNameProvider.getNewName(TinyNameProvider.java:66) // at org.vineflower.variablerenaming.TinyNameProvider.lambda$rename$1(TinyNameProvider.java:53) // at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1228) // at org.vineflower.variablerenaming.TinyNameProvider.rename(TinyNameProvider.java:53) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.propogateLVTs(VarDefinitionHelper.java:1030) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.setVarDefinitions(VarDefinitionHelper.java:246) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarProcessor.setVarDefinitions(VarProcessor.java:53) // at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:422) // // Bytecode: // 0: aload 1 // 1: getstatic com/mojang/util/InstantTypeAdapter.FORMATTER Ljava/time/format/DateTimeFormatter; // 4: aload 2 // 5: invokevirtual java/time/format/DateTimeFormatter.format (Ljava/time/temporal/TemporalAccessor;)Ljava/lang/String; // 8: invokevirtual com/google/gson/stream/JsonWriter.value (Ljava/lang/String;)Lcom/google/gson/stream/JsonWriter; // b: pop // c: return }
public Instant read(JsonReader jsonReader) throws IOException { // $VF: Couldn't be decompiled // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!) // java.lang.NullPointerException: Cannot read field "type" because "type" is null // at org.vineflower.variablerenaming.TinyNameProvider.getNewName(TinyNameProvider.java:66) // at org.vineflower.variablerenaming.TinyNameProvider.lambda$rename$1(TinyNameProvider.java:53) // at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1228) // at org.vineflower.variablerenaming.TinyNameProvider.rename(TinyNameProvider.java:53) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.propogateLVTs(VarDefinitionHelper.java:1030) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.setVarDefinitions(VarDefinitionHelper.java:246) // at org.jetbrains.java.decompiler.modules.decompiler.vars.VarProcessor.setVarDefinitions(VarProcessor.java:53) // at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:422) // // Bytecode: // 00: getstatic com/mojang/util/InstantTypeAdapter.FORMATTER Ljava/time/format/DateTimeFormatter; // 03: aload 1 // 04: invokevirtual com/google/gson/stream/JsonReader.nextString ()Ljava/lang/String; // 07: invokevirtual java/time/format/DateTimeFormatter.parse (Ljava/lang/CharSequence;)Ljava/time/temporal/TemporalAccessor; // 0a: invokestatic java/time/Instant.from (Ljava/time/temporal/TemporalAccessor;)Ljava/time/Instant; // 0d: areturn // 0e: astore 2 // 0f: new com/google/gson/JsonParseException // 12: dup // 13: ldc "Malformed ISO instant format" // 15: invokespecial com/google/gson/JsonParseException.<init> (Ljava/lang/String;)V // 18: athrow }}