From 177f38b9aa2cf080078c1c21d1f18e202e9e9ce7 Mon Sep 17 00:00:00 2001 From: liach <7806504+liach@users.noreply.github.com> Date: Mon, 12 Apr 2021 19:23:18 +0700 Subject: [PATCH] Last few top level classes (annotations) (#2321) Signed-off-by: liach Co-authored-by: liach --- .../ClientFieldsAreNonnullByDefault.mapping | 11 +++++++++++ .../ClientMethodsReturnNonnullByDefault.mapping | 11 +++++++++++ .../util/annotation/DeobfuscateClass.mapping | 5 +++++ .../annotation/FieldsAreNonnullByDefault.mapping | 6 ++++++ .../annotation/FieldsAreNonnullByDefault2.mapping | 12 ++++++++++++ .../MathMethodsReturnNonnullByDefault.mapping | 11 +++++++++++ .../annotation/MethodsReturnNonnullByDefault.mapping | 3 +++ 7 files changed, 59 insertions(+) create mode 100644 mappings/net/minecraft/util/annotation/ClientFieldsAreNonnullByDefault.mapping create mode 100644 mappings/net/minecraft/util/annotation/ClientMethodsReturnNonnullByDefault.mapping create mode 100644 mappings/net/minecraft/util/annotation/DeobfuscateClass.mapping create mode 100644 mappings/net/minecraft/util/annotation/FieldsAreNonnullByDefault2.mapping create mode 100644 mappings/net/minecraft/util/annotation/MathMethodsReturnNonnullByDefault.mapping diff --git a/mappings/net/minecraft/util/annotation/ClientFieldsAreNonnullByDefault.mapping b/mappings/net/minecraft/util/annotation/ClientFieldsAreNonnullByDefault.mapping new file mode 100644 index 0000000000..fe0d0b465a --- /dev/null +++ b/mappings/net/minecraft/util/annotation/ClientFieldsAreNonnullByDefault.mapping @@ -0,0 +1,11 @@ +CLASS net/minecraft/class_6178 net/minecraft/util/annotation/ClientFieldsAreNonnullByDefault + COMMENT Specifies that all fields in the annotated package/class are nonnull + COMMENT unless nullability is specified with a separate annotation. + COMMENT + COMMENT

While this annotation is meant to be a package/class annotation, it can + COMMENT be applied to anything as it does not restrict its targets. + COMMENT + COMMENT

This annotation is used on the client exclusively. + COMMENT + COMMENT @see FieldsAreNonnullByDefault + COMMENT @see FieldsAreNonnullByDefault2 diff --git a/mappings/net/minecraft/util/annotation/ClientMethodsReturnNonnullByDefault.mapping b/mappings/net/minecraft/util/annotation/ClientMethodsReturnNonnullByDefault.mapping new file mode 100644 index 0000000000..3816d878dc --- /dev/null +++ b/mappings/net/minecraft/util/annotation/ClientMethodsReturnNonnullByDefault.mapping @@ -0,0 +1,11 @@ +CLASS net/minecraft/class_6179 net/minecraft/util/annotation/ClientMethodsReturnNonnullByDefault + COMMENT Specifies that all methods in the annotated package/class return nonnull + COMMENT values unless nullability is specified with a separate annotation. + COMMENT + COMMENT

While this annotation is meant to be a package/class annotation, it can + COMMENT be applied to anything as it does not restrict its targets. + COMMENT + COMMENT

This annotation is used on the client exclusively. + COMMENT + COMMENT @see MethodsReturnNonnullByDefault + COMMENT @see MathMethodsReturnNonnullByDefault diff --git a/mappings/net/minecraft/util/annotation/DeobfuscateClass.mapping b/mappings/net/minecraft/util/annotation/DeobfuscateClass.mapping new file mode 100644 index 0000000000..b955f8efca --- /dev/null +++ b/mappings/net/minecraft/util/annotation/DeobfuscateClass.mapping @@ -0,0 +1,5 @@ +CLASS net/minecraft/class_6177 net/minecraft/util/annotation/DeobfuscateClass + COMMENT An annotation on classes. When a class is annotated, the class itself and its + COMMENT fields and methods are not obfuscated. Mainly used by blaze3d. + COMMENT + COMMENT @see net.minecraft.obfuscate.DontObfuscate diff --git a/mappings/net/minecraft/util/annotation/FieldsAreNonnullByDefault.mapping b/mappings/net/minecraft/util/annotation/FieldsAreNonnullByDefault.mapping index c33eb4443a..2f1f1523ec 100644 --- a/mappings/net/minecraft/util/annotation/FieldsAreNonnullByDefault.mapping +++ b/mappings/net/minecraft/util/annotation/FieldsAreNonnullByDefault.mapping @@ -4,3 +4,9 @@ CLASS net/minecraft/class_6319 net/minecraft/util/annotation/FieldsAreNonnullByD COMMENT COMMENT

While this annotation is meant to be a package/class annotation, it can COMMENT be applied to anything as it does not restrict its targets. + COMMENT + COMMENT

A similar {@link FieldsAreNonnullByDefault2} exists; they don't coexist + COMMENT on any package info class. + COMMENT + COMMENT @see ClientFieldsAreNonnullByDefault + COMMENT @see FieldsAreNonnullByDefault2 diff --git a/mappings/net/minecraft/util/annotation/FieldsAreNonnullByDefault2.mapping b/mappings/net/minecraft/util/annotation/FieldsAreNonnullByDefault2.mapping new file mode 100644 index 0000000000..63afca55bf --- /dev/null +++ b/mappings/net/minecraft/util/annotation/FieldsAreNonnullByDefault2.mapping @@ -0,0 +1,12 @@ +CLASS net/minecraft/class_6037 net/minecraft/util/annotation/FieldsAreNonnullByDefault2 + COMMENT Specifies that all fields in the annotated package/class are nonnull + COMMENT unless nullability is specified with a separate annotation. + COMMENT + COMMENT

While this annotation is meant to be a package/class annotation, it can + COMMENT be applied to anything as it does not restrict its targets. + COMMENT + COMMENT

This is pretty much identical to {@link FieldsAreNonnullByDefault} that they + COMMENT are used on different package info files and never coexist. + COMMENT + COMMENT @see ClientFieldsAreNonnullByDefault + COMMENT @see FieldsAreNonnullByDefault diff --git a/mappings/net/minecraft/util/annotation/MathMethodsReturnNonnullByDefault.mapping b/mappings/net/minecraft/util/annotation/MathMethodsReturnNonnullByDefault.mapping new file mode 100644 index 0000000000..b6d613a2a3 --- /dev/null +++ b/mappings/net/minecraft/util/annotation/MathMethodsReturnNonnullByDefault.mapping @@ -0,0 +1,11 @@ +CLASS net/minecraft/class_6216 net/minecraft/util/annotation/MathMethodsReturnNonnullByDefault + COMMENT Specifies that all methods in the annotated package/class return nonnull + COMMENT values unless nullability is specified with a separate annotation. + COMMENT + COMMENT

While this annotation is meant to be a package/class annotation, it can + COMMENT be applied to anything as it does not restrict its targets. + COMMENT + COMMENT

This is pretty much identical to {@link MethodsReturnNonnullByDefault}, but + COMMENT this is only used by the package info for a few math classes. + COMMENT + COMMENT @see MethodsReturnNonnullByDefault diff --git a/mappings/net/minecraft/util/annotation/MethodsReturnNonnullByDefault.mapping b/mappings/net/minecraft/util/annotation/MethodsReturnNonnullByDefault.mapping index c023af489b..6bf06de210 100644 --- a/mappings/net/minecraft/util/annotation/MethodsReturnNonnullByDefault.mapping +++ b/mappings/net/minecraft/util/annotation/MethodsReturnNonnullByDefault.mapping @@ -4,3 +4,6 @@ CLASS net/minecraft/class_6328 net/minecraft/util/annotation/MethodsReturnNonnul COMMENT COMMENT

While this annotation is meant to be a package/class annotation, it can COMMENT be applied to anything as it does not restrict its targets. + COMMENT + COMMENT @see ClientMethodsReturnNonnullByDefault + COMMENT @see MathMethodsReturnNonnullByDefault