Skip to content

Commit 2607557

Browse files
TheMrMilchmannSpasi
authored andcommitted
feat(core): migrate from jsr305 to JSpecify (generated)
1 parent 06f23ed commit 2607557

File tree

3,585 files changed

+15736
-23517
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,585 files changed

+15736
-23517
lines changed

modules/lwjgl/assimp/src/generated/java/org/lwjgl/assimp/AIAABB.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
package org.lwjgl.assimp;
77

8-
import javax.annotation.*;
8+
import org.jspecify.annotations.*;
99

1010
import java.nio.*;
1111

@@ -136,8 +136,7 @@ public static AIAABB create(long address) {
136136
}
137137

138138
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
139-
@Nullable
140-
public static AIAABB createSafe(long address) {
139+
public static @Nullable AIAABB createSafe(long address) {
141140
return address == NULL ? null : new AIAABB(address, null);
142141
}
143142

@@ -180,8 +179,7 @@ public static AIAABB.Buffer create(long address, int capacity) {
180179
}
181180

182181
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
183-
@Nullable
184-
public static AIAABB.Buffer createSafe(long address, int capacity) {
182+
public static AIAABB.@Nullable Buffer createSafe(long address, int capacity) {
185183
return address == NULL ? null : new Buffer(address, capacity);
186184
}
187185

modules/lwjgl/assimp/src/generated/java/org/lwjgl/assimp/AIAnimMesh.java

+47-61
Large diffs are not rendered by default.

modules/lwjgl/assimp/src/generated/java/org/lwjgl/assimp/AIAnimation.java

+12-20
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
package org.lwjgl.assimp;
77

8-
import javax.annotation.*;
8+
import org.jspecify.annotations.*;
99

1010
import java.nio.*;
1111

@@ -118,23 +118,20 @@ public AIAnimation(ByteBuffer container) {
118118
@NativeType("unsigned int")
119119
public int mNumChannels() { return nmNumChannels(address()); }
120120
/** The node animation channels. Each channel affects a single node. The array is {@code mNumChannels} in size. */
121-
@Nullable
122121
@NativeType("struct aiNodeAnim **")
123-
public PointerBuffer mChannels() { return nmChannels(address()); }
122+
public @Nullable PointerBuffer mChannels() { return nmChannels(address()); }
124123
/** The number of mesh animation channels. Each channel affects a single mesh and defines vertex-based animation. */
125124
@NativeType("unsigned int")
126125
public int mNumMeshChannels() { return nmNumMeshChannels(address()); }
127126
/** The mesh animation channels. Each channel affects a single mesh. The array is {@code mNumMeshChannels} in size. */
128-
@Nullable
129127
@NativeType("struct aiMeshAnim **")
130-
public PointerBuffer mMeshChannels() { return nmMeshChannels(address()); }
128+
public @Nullable PointerBuffer mMeshChannels() { return nmMeshChannels(address()); }
131129
/** the number of mesh animation channels. Each channel affects a single mesh and defines morphing animation. */
132130
@NativeType("unsigned int")
133131
public int mNumMorphMeshChannels() { return nmNumMorphMeshChannels(address()); }
134132
/** the morph mesh animation channels. Each channel affects a single mesh. The array is {@code mNumMorphMeshChannels} in size. */
135-
@Nullable
136133
@NativeType("struct aiMeshMorphAnim **")
137-
public PointerBuffer mMorphMeshChannels() { return nmMorphMeshChannels(address()); }
134+
public @Nullable PointerBuffer mMorphMeshChannels() { return nmMorphMeshChannels(address()); }
138135

139136
/** Copies the specified {@link AIString} to the {@link #mName} field. */
140137
public AIAnimation mName(@NativeType("struct aiString") AIString value) { nmName(address(), value); return this; }
@@ -206,8 +203,7 @@ public static AIAnimation create(long address) {
206203
}
207204

208205
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
209-
@Nullable
210-
public static AIAnimation createSafe(long address) {
206+
public static @Nullable AIAnimation createSafe(long address) {
211207
return address == NULL ? null : new AIAnimation(address, null);
212208
}
213209

@@ -250,8 +246,7 @@ public static AIAnimation.Buffer create(long address, int capacity) {
250246
}
251247

252248
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
253-
@Nullable
254-
public static AIAnimation.Buffer createSafe(long address, int capacity) {
249+
public static AIAnimation.@Nullable Buffer createSafe(long address, int capacity) {
255250
return address == NULL ? null : new Buffer(address, capacity);
256251
}
257252

@@ -323,15 +318,15 @@ public static AIAnimation.Buffer calloc(int capacity, MemoryStack stack) {
323318
/** Unsafe version of {@link #mNumChannels}. */
324319
public static int nmNumChannels(long struct) { return memGetInt(struct + AIAnimation.MNUMCHANNELS); }
325320
/** Unsafe version of {@link #mChannels() mChannels}. */
326-
@Nullable public static PointerBuffer nmChannels(long struct) { return memPointerBufferSafe(memGetAddress(struct + AIAnimation.MCHANNELS), nmNumChannels(struct)); }
321+
public static @Nullable PointerBuffer nmChannels(long struct) { return memPointerBufferSafe(memGetAddress(struct + AIAnimation.MCHANNELS), nmNumChannels(struct)); }
327322
/** Unsafe version of {@link #mNumMeshChannels}. */
328323
public static int nmNumMeshChannels(long struct) { return memGetInt(struct + AIAnimation.MNUMMESHCHANNELS); }
329324
/** Unsafe version of {@link #mMeshChannels() mMeshChannels}. */
330-
@Nullable public static PointerBuffer nmMeshChannels(long struct) { return memPointerBufferSafe(memGetAddress(struct + AIAnimation.MMESHCHANNELS), nmNumMeshChannels(struct)); }
325+
public static @Nullable PointerBuffer nmMeshChannels(long struct) { return memPointerBufferSafe(memGetAddress(struct + AIAnimation.MMESHCHANNELS), nmNumMeshChannels(struct)); }
331326
/** Unsafe version of {@link #mNumMorphMeshChannels}. */
332327
public static int nmNumMorphMeshChannels(long struct) { return memGetInt(struct + AIAnimation.MNUMMORPHMESHCHANNELS); }
333328
/** Unsafe version of {@link #mMorphMeshChannels() mMorphMeshChannels}. */
334-
@Nullable public static PointerBuffer nmMorphMeshChannels(long struct) { return memPointerBufferSafe(memGetAddress(struct + AIAnimation.MMORPHMESHCHANNELS), nmNumMorphMeshChannels(struct)); }
329+
public static @Nullable PointerBuffer nmMorphMeshChannels(long struct) { return memPointerBufferSafe(memGetAddress(struct + AIAnimation.MMORPHMESHCHANNELS), nmNumMorphMeshChannels(struct)); }
335330

336331
/** Unsafe version of {@link #mName(AIString) mName}. */
337332
public static void nmName(long struct, AIString value) { memCopy(value.address(), struct + AIAnimation.MNAME, AIString.SIZEOF); }
@@ -423,23 +418,20 @@ protected AIAnimation getElementFactory() {
423418
@NativeType("unsigned int")
424419
public int mNumChannels() { return AIAnimation.nmNumChannels(address()); }
425420
/** @return a {@link PointerBuffer} view of the data pointed to by the {@link AIAnimation#mChannels} field. */
426-
@Nullable
427421
@NativeType("struct aiNodeAnim **")
428-
public PointerBuffer mChannels() { return AIAnimation.nmChannels(address()); }
422+
public @Nullable PointerBuffer mChannels() { return AIAnimation.nmChannels(address()); }
429423
/** @return the value of the {@link AIAnimation#mNumMeshChannels} field. */
430424
@NativeType("unsigned int")
431425
public int mNumMeshChannels() { return AIAnimation.nmNumMeshChannels(address()); }
432426
/** @return a {@link PointerBuffer} view of the data pointed to by the {@link AIAnimation#mMeshChannels} field. */
433-
@Nullable
434427
@NativeType("struct aiMeshAnim **")
435-
public PointerBuffer mMeshChannels() { return AIAnimation.nmMeshChannels(address()); }
428+
public @Nullable PointerBuffer mMeshChannels() { return AIAnimation.nmMeshChannels(address()); }
436429
/** @return the value of the {@link AIAnimation#mNumMorphMeshChannels} field. */
437430
@NativeType("unsigned int")
438431
public int mNumMorphMeshChannels() { return AIAnimation.nmNumMorphMeshChannels(address()); }
439432
/** @return a {@link PointerBuffer} view of the data pointed to by the {@link AIAnimation#mMorphMeshChannels} field. */
440-
@Nullable
441433
@NativeType("struct aiMeshMorphAnim **")
442-
public PointerBuffer mMorphMeshChannels() { return AIAnimation.nmMorphMeshChannels(address()); }
434+
public @Nullable PointerBuffer mMorphMeshChannels() { return AIAnimation.nmMorphMeshChannels(address()); }
443435

444436
/** Copies the specified {@link AIString} to the {@link AIAnimation#mName} field. */
445437
public AIAnimation.Buffer mName(@NativeType("struct aiString") AIString value) { AIAnimation.nmName(address(), value); return this; }

modules/lwjgl/assimp/src/generated/java/org/lwjgl/assimp/AIBone.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
package org.lwjgl.assimp;
77

8-
import javax.annotation.*;
8+
import org.jspecify.annotations.*;
99

1010
import java.nio.*;
1111

@@ -189,8 +189,7 @@ public static AIBone create(long address) {
189189
}
190190

191191
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
192-
@Nullable
193-
public static AIBone createSafe(long address) {
192+
public static @Nullable AIBone createSafe(long address) {
194193
return address == NULL ? null : new AIBone(address, null);
195194
}
196195

@@ -233,8 +232,7 @@ public static AIBone.Buffer create(long address, int capacity) {
233232
}
234233

235234
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
236-
@Nullable
237-
public static AIBone.Buffer createSafe(long address, int capacity) {
235+
public static AIBone.@Nullable Buffer createSafe(long address, int capacity) {
238236
return address == NULL ? null : new Buffer(address, capacity);
239237
}
240238

modules/lwjgl/assimp/src/generated/java/org/lwjgl/assimp/AICamera.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
package org.lwjgl.assimp;
77

8-
import javax.annotation.*;
8+
import org.jspecify.annotations.*;
99

1010
import java.nio.*;
1111

@@ -246,8 +246,7 @@ public static AICamera create(long address) {
246246
}
247247

248248
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
249-
@Nullable
250-
public static AICamera createSafe(long address) {
249+
public static @Nullable AICamera createSafe(long address) {
251250
return address == NULL ? null : new AICamera(address, null);
252251
}
253252

@@ -290,8 +289,7 @@ public static AICamera.Buffer create(long address, int capacity) {
290289
}
291290

292291
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
293-
@Nullable
294-
public static AICamera.Buffer createSafe(long address, int capacity) {
292+
public static AICamera.@Nullable Buffer createSafe(long address, int capacity) {
295293
return address == NULL ? null : new Buffer(address, capacity);
296294
}
297295

modules/lwjgl/assimp/src/generated/java/org/lwjgl/assimp/AIColor3D.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
package org.lwjgl.assimp;
77

8-
import javax.annotation.*;
8+
import org.jspecify.annotations.*;
99

1010
import java.nio.*;
1111

@@ -92,8 +92,7 @@ public static AIColor3D create(long address) {
9292
}
9393

9494
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
95-
@Nullable
96-
public static AIColor3D createSafe(long address) {
95+
public static @Nullable AIColor3D createSafe(long address) {
9796
return address == NULL ? null : new AIColor3D(address, null);
9897
}
9998

@@ -108,8 +107,7 @@ public static AIColor3D.Buffer create(long address, int capacity) {
108107
}
109108

110109
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
111-
@Nullable
112-
public static AIColor3D.Buffer createSafe(long address, int capacity) {
110+
public static AIColor3D.@Nullable Buffer createSafe(long address, int capacity) {
113111
return address == NULL ? null : new Buffer(address, capacity);
114112
}
115113

modules/lwjgl/assimp/src/generated/java/org/lwjgl/assimp/AIColor4D.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
package org.lwjgl.assimp;
77

8-
import javax.annotation.*;
8+
import org.jspecify.annotations.*;
99

1010
import java.nio.*;
1111

@@ -152,8 +152,7 @@ public static AIColor4D create(long address) {
152152
}
153153

154154
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
155-
@Nullable
156-
public static AIColor4D createSafe(long address) {
155+
public static @Nullable AIColor4D createSafe(long address) {
157156
return address == NULL ? null : new AIColor4D(address, null);
158157
}
159158

@@ -196,8 +195,7 @@ public static AIColor4D.Buffer create(long address, int capacity) {
196195
}
197196

198197
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
199-
@Nullable
200-
public static AIColor4D.Buffer createSafe(long address, int capacity) {
198+
public static AIColor4D.@Nullable Buffer createSafe(long address, int capacity) {
201199
return address == NULL ? null : new Buffer(address, capacity);
202200
}
203201

modules/lwjgl/assimp/src/generated/java/org/lwjgl/assimp/AIExportDataBlob.java

+6-10
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
package org.lwjgl.assimp;
77

8-
import javax.annotation.*;
8+
import org.jspecify.annotations.*;
99

1010
import java.nio.*;
1111

@@ -108,9 +108,8 @@ public AIExportDataBlob(ByteBuffer container) {
108108
@NativeType("struct aiString")
109109
public AIString name() { return nname(address()); }
110110
/** Pointer to the next blob in the chain or NULL if there is none. */
111-
@Nullable
112111
@NativeType("struct aiExportDataBlob *")
113-
public AIExportDataBlob next() { return nnext(address()); }
112+
public @Nullable AIExportDataBlob next() { return nnext(address()); }
114113

115114
/** Sets the address of the specified {@link ByteBuffer} to the {@link #data} field. */
116115
public AIExportDataBlob data(@NativeType("void *") ByteBuffer value) { ndata(address(), value); return this; }
@@ -170,8 +169,7 @@ public static AIExportDataBlob create(long address) {
170169
}
171170

172171
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
173-
@Nullable
174-
public static AIExportDataBlob createSafe(long address) {
172+
public static @Nullable AIExportDataBlob createSafe(long address) {
175173
return address == NULL ? null : new AIExportDataBlob(address, null);
176174
}
177175

@@ -214,8 +212,7 @@ public static AIExportDataBlob.Buffer create(long address, int capacity) {
214212
}
215213

216214
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
217-
@Nullable
218-
public static AIExportDataBlob.Buffer createSafe(long address, int capacity) {
215+
public static AIExportDataBlob.@Nullable Buffer createSafe(long address, int capacity) {
219216
return address == NULL ? null : new Buffer(address, capacity);
220217
}
221218

@@ -285,7 +282,7 @@ public static AIExportDataBlob.Buffer calloc(int capacity, MemoryStack stack) {
285282
/** Unsafe version of {@link #name}. */
286283
public static AIString nname(long struct) { return AIString.create(struct + AIExportDataBlob.NAME); }
287284
/** Unsafe version of {@link #next}. */
288-
@Nullable public static AIExportDataBlob nnext(long struct) { return AIExportDataBlob.createSafe(memGetAddress(struct + AIExportDataBlob.NEXT)); }
285+
public static @Nullable AIExportDataBlob nnext(long struct) { return AIExportDataBlob.createSafe(memGetAddress(struct + AIExportDataBlob.NEXT)); }
289286

290287
/** Sets the specified value to the {@code size} field of the specified {@code struct}. */
291288
public static void nsize(long struct, long value) { memPutAddress(struct + AIExportDataBlob.SIZE, value); }
@@ -358,9 +355,8 @@ protected AIExportDataBlob getElementFactory() {
358355
@NativeType("struct aiString")
359356
public AIString name() { return AIExportDataBlob.nname(address()); }
360357
/** @return a {@link AIExportDataBlob} view of the struct pointed to by the {@link AIExportDataBlob#next} field. */
361-
@Nullable
362358
@NativeType("struct aiExportDataBlob *")
363-
public AIExportDataBlob next() { return AIExportDataBlob.nnext(address()); }
359+
public @Nullable AIExportDataBlob next() { return AIExportDataBlob.nnext(address()); }
364360

365361
/** Sets the address of the specified {@link ByteBuffer} to the {@link AIExportDataBlob#data} field. */
366362
public AIExportDataBlob.Buffer data(@NativeType("void *") ByteBuffer value) { AIExportDataBlob.ndata(address(), value); return this; }

modules/lwjgl/assimp/src/generated/java/org/lwjgl/assimp/AIExportFormatDesc.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
package org.lwjgl.assimp;
77

8-
import javax.annotation.*;
8+
import org.jspecify.annotations.*;
99

1010
import java.nio.*;
1111

@@ -162,8 +162,7 @@ public static AIExportFormatDesc create(long address) {
162162
}
163163

164164
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
165-
@Nullable
166-
public static AIExportFormatDesc createSafe(long address) {
165+
public static @Nullable AIExportFormatDesc createSafe(long address) {
167166
return address == NULL ? null : new AIExportFormatDesc(address, null);
168167
}
169168

@@ -206,8 +205,7 @@ public static AIExportFormatDesc.Buffer create(long address, int capacity) {
206205
}
207206

208207
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
209-
@Nullable
210-
public static AIExportFormatDesc.Buffer createSafe(long address, int capacity) {
208+
public static AIExportFormatDesc.@Nullable Buffer createSafe(long address, int capacity) {
211209
return address == NULL ? null : new Buffer(address, capacity);
212210
}
213211

modules/lwjgl/assimp/src/generated/java/org/lwjgl/assimp/AIFace.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
package org.lwjgl.assimp;
77

8-
import javax.annotation.*;
8+
import org.jspecify.annotations.*;
99

1010
import java.nio.*;
1111

@@ -129,8 +129,7 @@ public static AIFace create(long address) {
129129
}
130130

131131
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
132-
@Nullable
133-
public static AIFace createSafe(long address) {
132+
public static @Nullable AIFace createSafe(long address) {
134133
return address == NULL ? null : new AIFace(address, null);
135134
}
136135

@@ -173,8 +172,7 @@ public static AIFace.Buffer create(long address, int capacity) {
173172
}
174173

175174
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
176-
@Nullable
177-
public static AIFace.Buffer createSafe(long address, int capacity) {
175+
public static AIFace.@Nullable Buffer createSafe(long address, int capacity) {
178176
return address == NULL ? null : new Buffer(address, capacity);
179177
}
180178

modules/lwjgl/assimp/src/generated/java/org/lwjgl/assimp/AIFile.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
package org.lwjgl.assimp;
77

8-
import javax.annotation.*;
8+
import org.jspecify.annotations.*;
99

1010
import java.nio.*;
1111

@@ -193,8 +193,7 @@ public static AIFile create(long address) {
193193
}
194194

195195
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
196-
@Nullable
197-
public static AIFile createSafe(long address) {
196+
public static @Nullable AIFile createSafe(long address) {
198197
return address == NULL ? null : new AIFile(address, null);
199198
}
200199

@@ -237,8 +236,7 @@ public static AIFile.Buffer create(long address, int capacity) {
237236
}
238237

239238
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
240-
@Nullable
241-
public static AIFile.Buffer createSafe(long address, int capacity) {
239+
public static AIFile.@Nullable Buffer createSafe(long address, int capacity) {
242240
return address == NULL ? null : new Buffer(address, capacity);
243241
}
244242

0 commit comments

Comments
 (0)