commit 6c3259ce7a49eab6e0577e1449d3620680ac9918
Author: LeszekKoltunski <leszek@koltunski.pl>
Date:   Wed May 28 08:44:16 2025 +0200

    make it possible to compile distorted-examples with both master and kotlin-transition branches.

diff --git a/src/main/java/org/distorted/library/mesh/MeshFile.kt b/src/main/java/org/distorted/library/mesh/MeshFile.kt
index 92d4dd5..415f24a 100644
--- a/src/main/java/org/distorted/library/mesh/MeshFile.kt
+++ b/src/main/java/org/distorted/library/mesh/MeshFile.kt
@@ -30,18 +30,17 @@ import java.io.DataInputStream
  */
 class MeshFile : MeshBase
 {
-    @JvmField var numBytes: Int = 0  // number of bytes read from the mesh file.
+    var numBytes: Int = 0  // number of bytes read from the mesh file.
 
     ///////////////////////////////////////////////////////////////////////////////////////////////////
     /**
      * Read mesh description from a file.
      *
-     *
      * File format: as written by MeshBase.write().
      */
-    constructor(stream: DataInputStream?) : super()
+    constructor(stream: DataInputStream) : super()
     {
-        numBytes = read(stream!!)
+        numBytes = read(stream)
     }
 
     ///////////////////////////////////////////////////////////////////////////////////////////////////
