From 2356320d3011955e3d73491111393f48261696cc Mon Sep 17 00:00:00 2001 From: Stephen Gold Date: Sat, 9 Mar 2019 11:57:23 -0800 Subject: [PATCH] more comment-only correction --- .../jme3androidexamples/JmeFragment.java | 2 +- .../com/jme3/scene/plugins/blender/file/Field.java | 12 ++++++------ .../plugins/blender/materials/MaterialContext.java | 2 +- .../scene/plugins/blender/meshes/MeshHelper.java | 2 +- .../src/main/java/com/jme3/anim/AnimComposer.java | 2 +- .../src/main/java/com/jme3/anim/tween/Tweens.java | 2 +- .../src/main/java/com/jme3/animation/Animation.java | 2 +- .../java/com/jme3/animation/AnimationFactory.java | 4 ++-- .../java/com/jme3/app/state/AppStateManager.java | 4 ++-- .../com/jme3/environment/util/CubeMapWrapper.java | 8 ++++---- jme3-core/src/main/java/com/jme3/math/MathUtils.java | 2 +- jme3-core/src/main/java/com/jme3/math/Plane.java | 4 ++-- .../main/java/com/jme3/post/FilterPostProcessor.java | 4 ++-- .../src/main/java/com/jme3/renderer/Renderer.java | 2 +- jme3-core/src/main/java/com/jme3/util/ListSort.java | 8 ++++---- .../java/com/jme3/util/TangentBinormalGenerator.java | 10 +++++----- .../util/mikktspace/MikktspaceTangentGenerator.java | 2 +- .../main/java/com/jme3/system/AWTTaskExecutor.java | 4 ++-- .../src/main/java/jme3test/input/TestJoystick.java | 2 +- .../jme3test/model/anim/TestAnimationFactory.java | 2 +- .../main/java/com/jme3/network/kernel/Envelope.java | 4 ++-- .../com/jme3/scene/plugins/gltf/GltfModelKey.java | 2 +- 22 files changed, 43 insertions(+), 43 deletions(-) diff --git a/jme3-android-examples/src/main/java/org/jmonkeyengine/jme3androidexamples/JmeFragment.java b/jme3-android-examples/src/main/java/org/jmonkeyengine/jme3androidexamples/JmeFragment.java index bd75be6e3..2dc91c2aa 100644 --- a/jme3-android-examples/src/main/java/org/jmonkeyengine/jme3androidexamples/JmeFragment.java +++ b/jme3-android-examples/src/main/java/org/jmonkeyengine/jme3androidexamples/JmeFragment.java @@ -10,7 +10,7 @@ import java.util.logging.LogManager; import static org.jmonkeyengine.jme3androidexamples.MainActivity.*; /** - * A placeholder fragment containing a the jME GLSurfaceView. + * A placeholder fragment containing a jME GLSurfaceView. */ public class JmeFragment extends AndroidHarnessFragment { diff --git a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/file/Field.java b/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/file/Field.java index 81cfdcde8..88c33467f 100644 --- a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/file/Field.java +++ b/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/file/Field.java @@ -27,7 +27,7 @@ class Field implements Cloneable { /** This variable indicates the level of the pointer. */ public int pointerLevel; /** - * This variable determines the sizes of the array. If the value is null the n the field is not an array. + * This variable determines the sizes of the array. If the value is null then the field is not an array. */ public int[] tableSizes; /** This variable indicates if the field is a function pointer. */ @@ -52,7 +52,7 @@ class Field implements Cloneable { /** * Copy constructor. Used in clone method. Copying is not full. The value in the new object is not set so that we - * have a clead empty copy of the filed to fill with data. + * have a clean empty copy of the field to fill with data. * @param field * the object that we copy */ @@ -73,7 +73,7 @@ class Field implements Cloneable { } /** - * This method fills the field wth data read from the input stream. + * This method fills the field with data read from the input stream. * @param blenderInputStream * the stream we read data from * @throws BlenderFileException @@ -264,9 +264,9 @@ class Field implements Cloneable { } /** - * This method removes all whitespaces from the text. + * This method removes all whitespace from the text. * @param text - * the text we remove whitespaces from + * the text we remove whitespace from */ private void removeWhitespaces(StringBuilder text) { for (int i = 0; i < text.length(); ++i) { @@ -306,7 +306,7 @@ class Field implements Cloneable { StringBuilder result = new StringBuilder(); result.append(this.getFullName()); - // insert appropriate amount of spaces to format the output corrently + // insert appropriate number of spaces to format the output corrently int nameLength = result.length(); result.append(' ');// at least one space is a must for (int i = 1; i < NAME_LENGTH - nameLength; ++i) {// we start from i=1 because one space is already added diff --git a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/materials/MaterialContext.java b/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/materials/MaterialContext.java index b8c5925a9..42da1c9d2 100644 --- a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/materials/MaterialContext.java +++ b/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/materials/MaterialContext.java @@ -102,7 +102,7 @@ public final class MaterialContext implements Savable { long flag = ((Number)structure.getFieldValue("flag")).longValue(); if((flag & FLAG_TRANSPARENT) != 0) { // veryfying if the transparency is present - // (in blender transparent mask is 0x10000 but its better to verify it because blender can indicate transparency when + // (in blender transparent mask is 0x10000 but it's better to verify it because blender can indicate transparency when // it is not required boolean transparent = false; if (diffuseColor != null) { diff --git a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/meshes/MeshHelper.java b/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/meshes/MeshHelper.java index a9aa9cf78..6a86ffecf 100644 --- a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/meshes/MeshHelper.java +++ b/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/meshes/MeshHelper.java @@ -247,7 +247,7 @@ public class MeshHelper extends AbstractBlenderHelper { } } } else { - // in this case UV's are assigned to faces (the array has the same legnth as the faces count) + // in this case UV's are assigned to faces (the array has the same length as the faces count) Structure facesData = (Structure) meshStructure.getFieldValue("fdata"); Pointer pFacesDataLayers = (Pointer) facesData.getFieldValue("layers"); if (pFacesDataLayers.isNotNull()) { diff --git a/jme3-core/src/main/java/com/jme3/anim/AnimComposer.java b/jme3-core/src/main/java/com/jme3/anim/AnimComposer.java index 38efa5d2a..23384b269 100644 --- a/jme3-core/src/main/java/com/jme3/anim/AnimComposer.java +++ b/jme3-core/src/main/java/com/jme3/anim/AnimComposer.java @@ -90,7 +90,7 @@ public class AnimComposer extends AbstractControl { /** * Remove current action on specified layer. * - * @param layerName The name of the layer we want to remove it's action. + * @param layerName The name of the layer we want to remove its action. */ public void removeCurrentAction(String layerName) { Layer l = layers.get(layerName); diff --git a/jme3-core/src/main/java/com/jme3/anim/tween/Tweens.java b/jme3-core/src/main/java/com/jme3/anim/tween/Tweens.java index 54ff3986b..0fedf9b75 100644 --- a/jme3-core/src/main/java/com/jme3/anim/tween/Tweens.java +++ b/jme3-core/src/main/java/com/jme3/anim/tween/Tweens.java @@ -378,7 +378,7 @@ public class Tweens { this.length = length; // Caller desires delegate to be 'length' instead of - // it's actual length so we will calculate a time scale + // its actual length so we will calculate a time scale // If the desired length is longer than delegate's then // we need to feed time in slower, ie: scale < 1 if (length != 0) { diff --git a/jme3-core/src/main/java/com/jme3/animation/Animation.java b/jme3-core/src/main/java/com/jme3/animation/Animation.java index d3a4d42f1..fe0ac8ce4 100644 --- a/jme3-core/src/main/java/com/jme3/animation/Animation.java +++ b/jme3-core/src/main/java/com/jme3/animation/Animation.java @@ -264,7 +264,7 @@ public class Animation implements Savable, Cloneable, JmeCloneable { // NOTE: Backward compat only .. Some animations have no // tracks set at all even though it makes no sense. // Since there's a null check in setTime(), - // its only appropriate that the check is made here as well. + // it's only appropriate that the check is made here as well. tracks = new SafeArrayList(Track.class); for (Savable savable : arr) { tracks.add((Track) savable); diff --git a/jme3-core/src/main/java/com/jme3/animation/AnimationFactory.java b/jme3-core/src/main/java/com/jme3/animation/AnimationFactory.java index 53a7c8ede..0b0a435c7 100644 --- a/jme3-core/src/main/java/com/jme3/animation/AnimationFactory.java +++ b/jme3-core/src/main/java/com/jme3/animation/AnimationFactory.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2012 jMonkeyEngine + * Copyright (c) 2009-2019 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -443,7 +443,7 @@ public class AnimationFactory { //jumping to the next keyFrame i = key; } else { - //No more key frame, filling the array witht he last transform computed. + //No more key frame, filling the array with the last transform computed. for (int j = i; j < totalFrames; j++) { switch (type) { diff --git a/jme3-core/src/main/java/com/jme3/app/state/AppStateManager.java b/jme3-core/src/main/java/com/jme3/app/state/AppStateManager.java index df7eeb4b2..f9ae1a452 100644 --- a/jme3-core/src/main/java/com/jme3/app/state/AppStateManager.java +++ b/jme3-core/src/main/java/com/jme3/app/state/AppStateManager.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2012 jMonkeyEngine + * Copyright (c) 2009-2019 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -230,7 +230,7 @@ public class AppStateManager { } } - // This may be more trouble than its worth but I think + // This may be more trouble than it's worth but I think // it's necessary for proper decoupling of states and provides // similar behavior to before where a state could be looked // up even if it wasn't initialized. -pspeed diff --git a/jme3-core/src/main/java/com/jme3/environment/util/CubeMapWrapper.java b/jme3-core/src/main/java/com/jme3/environment/util/CubeMapWrapper.java index 7226f9610..d03dbe88c 100644 --- a/jme3-core/src/main/java/com/jme3/environment/util/CubeMapWrapper.java +++ b/jme3-core/src/main/java/com/jme3/environment/util/CubeMapWrapper.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2015 jMonkeyEngine + * Copyright (c) 2009-2019 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -175,7 +175,7 @@ public class CubeMapWrapper { /** * writes a pixel given the coordinates vector and the color. - * @param vector the cooredinates where to write the pixel + * @param vector the coordinates where to write the pixel * @param color the color to write */ public void setPixel(Vector3f vector, ColorRGBA color) { @@ -186,7 +186,7 @@ public class CubeMapWrapper { } /** * writes a pixel given the coordinates vector, the mip level and the color. - * @param vector the cooredinates where to write the pixel + * @param vector the coordinates where to write the pixel * @param mipLevel the miplevel to write to * @param color the color to write */ @@ -231,7 +231,7 @@ public class CubeMapWrapper { } /** - * Inits the mip maps of a cube map witht he given number of mip maps + * Inits the mip maps of a cube map with the given number of mip maps * @param nbMipMaps the number of mip maps to initialize */ public void initMipMaps(int nbMipMaps) { diff --git a/jme3-core/src/main/java/com/jme3/math/MathUtils.java b/jme3-core/src/main/java/com/jme3/math/MathUtils.java index 8c22700b1..3f60d2fff 100644 --- a/jme3-core/src/main/java/com/jme3/math/MathUtils.java +++ b/jme3-core/src/main/java/com/jme3/math/MathUtils.java @@ -92,7 +92,7 @@ public class MathUtils { float invSinTheta = 1f / FastMath.sin(theta); // Calculate the scale for q1 and q2, according to the angle and - // it's sine value + // its sine value scale0 = FastMath.sin((1 - t) * theta) * invSinTheta; scale1 = FastMath.sin((t * theta)) * invSinTheta; diff --git a/jme3-core/src/main/java/com/jme3/math/Plane.java b/jme3-core/src/main/java/com/jme3/math/Plane.java index 81dd3a5cb..3da90b2bc 100644 --- a/jme3-core/src/main/java/com/jme3/math/Plane.java +++ b/jme3-core/src/main/java/com/jme3/math/Plane.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2018 jMonkeyEngine + * Copyright (c) 2009-2019 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -255,7 +255,7 @@ public class Plane implements Savable, Cloneable, java.io.Serializable { } /** - * toString returns a string thta represents the string + * toString returns a string that represents the string * representation of this plane. It represents the normal as a * Vector3f object, so the format is the following: * com.jme.math.Plane [Normal: org.jme.math.Vector3f [X=XX.XXXX, Y=YY.YYYY, diff --git a/jme3-core/src/main/java/com/jme3/post/FilterPostProcessor.java b/jme3-core/src/main/java/com/jme3/post/FilterPostProcessor.java index e69408157..d3580ccab 100644 --- a/jme3-core/src/main/java/com/jme3/post/FilterPostProcessor.java +++ b/jme3-core/src/main/java/com/jme3/post/FilterPostProcessor.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2018 jMonkeyEngine + * Copyright (c) 2009-2019 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -393,7 +393,7 @@ public class FilterPostProcessor implements SceneProcessor, Savable { lastFilterIndex = i; //the Fpp is initialized, but the viwport framebuffer is the //original out framebuffer so we must recover from a situation - //where no filter was enabled. So we set th correc framebuffer + //where no filter was enabled. So we set the correct framebuffer //on the viewport if(isInitialized() && viewPort.getOutputFrameBuffer()==outputBuffer){ setupViewPortFrameBuffer(); diff --git a/jme3-core/src/main/java/com/jme3/renderer/Renderer.java b/jme3-core/src/main/java/com/jme3/renderer/Renderer.java index cb1b21b4e..095cc76de 100644 --- a/jme3-core/src/main/java/com/jme3/renderer/Renderer.java +++ b/jme3-core/src/main/java/com/jme3/renderer/Renderer.java @@ -223,7 +223,7 @@ public interface Renderer { /** * Reads the pixels currently stored in the specified framebuffer * into the given ByteBuffer object. - * Only color pixels are transferred, witht hte given format. + * Only color pixels are transferred, with the given format. * The given byte buffer should have at least * fb.getWidth() * fb.getHeight() * 4 bytes remaining. * diff --git a/jme3-core/src/main/java/com/jme3/util/ListSort.java b/jme3-core/src/main/java/com/jme3/util/ListSort.java index cede1ff8a..c45353a0c 100644 --- a/jme3-core/src/main/java/com/jme3/util/ListSort.java +++ b/jme3-core/src/main/java/com/jme3/util/ListSort.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2018 jMonkeyEngine + * Copyright (c) 2009-2019 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -451,7 +451,7 @@ public class ListSort { /* Where does B start in A? Elements in A before that can be * ignored (already in place). */ - //didn't find proper naming for k as it's used inthe original implementation + //didn't find proper naming for k as it's used in the original implementation int k = gallopRight(array[indexB], array, indexA, lenA, 0, comparator); indexA += k; lenA -= k; @@ -771,7 +771,7 @@ public class ListSort { /* lengthA==0 is impossible now if the comparison * function is consistent, but we can't assume * that it is. - * a propper error will be thrown in mergeLow if lengthA == 0 + * a proper error will be thrown in mergeLow if lengthA == 0 */ if (lengthA <= 1){ return; @@ -942,7 +942,7 @@ public class ListSort { /* lengthB==0 is impossible now if the comparison * function is consistent, but we can't assume * that it is. - * a propper error will be thrown in mergeLow if lengthB == 0 + * a proper error will be thrown in mergeLow if lengthB == 0 */ if (lengthB <= 1){ return; diff --git a/jme3-core/src/main/java/com/jme3/util/TangentBinormalGenerator.java b/jme3-core/src/main/java/com/jme3/util/TangentBinormalGenerator.java index 0e5884d9f..1ae361096 100644 --- a/jme3-core/src/main/java/com/jme3/util/TangentBinormalGenerator.java +++ b/jme3-core/src/main/java/com/jme3/util/TangentBinormalGenerator.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2018 jMonkeyEngine + * Copyright (c) 2009-2019 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -264,8 +264,8 @@ public class TangentBinormalGenerator { return vertices; } - //Don't remove splitmirorred boolean,It's not used right now, but I intend to - //make this method also split vertice with rotated tangent space and I'll + //Don't remove splitmirorred boolean. It's not used right now, but I intend to + //make this method also split vertices with rotated tangent space and I'll //add another splitRotated boolean private static List splitVertices(Mesh mesh, List vertexData, boolean splitMirorred) { int nbVertices = mesh.getBuffer(Type.Position).getNumElements(); @@ -644,8 +644,8 @@ public class TangentBinormalGenerator { boolean found = false; //Nehon 07/07/2013 - //Removed this part, joining splitted vertice to compute tangent space makes no sense to me - //separate vertice should have separate tangent space + //Removed this part, joining split vertices to compute tangent space makes no sense to me + //separate vertices should have separate tangent space if(!splitMirrored){ for (int j = 0; j < vertexMap.size(); j++) { VertexInfo vertexInfo = vertexMap.get(j); diff --git a/jme3-core/src/main/java/com/jme3/util/mikktspace/MikktspaceTangentGenerator.java b/jme3-core/src/main/java/com/jme3/util/mikktspace/MikktspaceTangentGenerator.java index dbaedb098..48a13d6f4 100644 --- a/jme3-core/src/main/java/com/jme3/util/mikktspace/MikktspaceTangentGenerator.java +++ b/jme3-core/src/main/java/com/jme3/util/mikktspace/MikktspaceTangentGenerator.java @@ -841,7 +841,7 @@ public class MikktspaceTangentGenerator { //Edge * pEdges = (Edge *) malloc(sizeof(Edge)*iNrTrianglesIn*3); Edge[] pEdges = new Edge[iNrTrianglesIn * 3]; - //TODO nehon weird... original algorithm check if pEdges is null but it's just been allocated... weirder, it does soemthing different if the edges are null... + //TODO nehon weird... original algorithm checked if pEdges is null but it's just been allocated... weirder, it does something different if the edges are null... // if (pEdges==null) // BuildNeighborsSlow(pTriInfos, piTriListIn, iNrTrianglesIn); // else diff --git a/jme3-desktop/src/main/java/com/jme3/system/AWTTaskExecutor.java b/jme3-desktop/src/main/java/com/jme3/system/AWTTaskExecutor.java index 07e3025b8..8e9f58623 100644 --- a/jme3-desktop/src/main/java/com/jme3/system/AWTTaskExecutor.java +++ b/jme3-desktop/src/main/java/com/jme3/system/AWTTaskExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2018 jMonkeyEngine + * Copyright (c) 2009-2019 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -39,7 +39,7 @@ import java.util.concurrent.locks.ReentrantReadWriteLock; /** *

* This class is dedicated to the queuing of AWT related tasks and their execution. - * It's enable to store tasks that have to be executed within an AWT context and execute them at the specified time. + * It's able to store tasks that have to be executed within an AWT context and execute them at the specified time. *

*

* This class is an AWT implementation of the JavaFX original code provided by Alexander Brui (see JME3-FX) diff --git a/jme3-examples/src/main/java/jme3test/input/TestJoystick.java b/jme3-examples/src/main/java/jme3test/input/TestJoystick.java index 29a9166fe..605cfaa67 100644 --- a/jme3-examples/src/main/java/jme3test/input/TestJoystick.java +++ b/jme3-examples/src/main/java/jme3test/input/TestJoystick.java @@ -78,7 +78,7 @@ public class TestJoystick extends SimpleApplication { joystickInfo.setLocalTranslation( 0, cam.getHeight(), 0 ); guiNode.attachChild( joystickInfo ); - // Add a raw listener because it's eisier to get all joystick events + // Add a raw listener because it's easier to get all joystick events // this way. inputManager.addRawInputListener( new JoystickEventListener() ); diff --git a/jme3-examples/src/main/java/jme3test/model/anim/TestAnimationFactory.java b/jme3-examples/src/main/java/jme3test/model/anim/TestAnimationFactory.java index dfd249711..2ddb251e5 100644 --- a/jme3-examples/src/main/java/jme3test/model/anim/TestAnimationFactory.java +++ b/jme3-examples/src/main/java/jme3test/model/anim/TestAnimationFactory.java @@ -46,7 +46,7 @@ public class TestAnimationFactory extends SimpleApplication { model.attachChild(childModel); TangentBinormalGenerator.generate(model); - //creating quite complex animation witht the AnimationHelper + //creating quite complex animation with the AnimationHelper // animation of 6 seconds named "anim" and with 25 frames per second AnimationFactory animationFactory = new AnimationFactory(6, "anim", 25); diff --git a/jme3-networking/src/main/java/com/jme3/network/kernel/Envelope.java b/jme3-networking/src/main/java/com/jme3/network/kernel/Envelope.java index 13c6849cd..9b92a1b6d 100644 --- a/jme3-networking/src/main/java/com/jme3/network/kernel/Envelope.java +++ b/jme3-networking/src/main/java/com/jme3/network/kernel/Envelope.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2012 jMonkeyEngine + * Copyright (c) 2009-2019 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -47,7 +47,7 @@ public class Envelope /** * Creates an incoming envelope holding the data from the specified * source. The 'reliable' flag further indicates on which mode of - * transport the data arrrived. + * transport the data arrived. */ public Envelope( Endpoint source, byte[] data, boolean reliable ) { diff --git a/jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GltfModelKey.java b/jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GltfModelKey.java index c2f13e9c0..c8128c44f 100644 --- a/jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GltfModelKey.java +++ b/jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GltfModelKey.java @@ -44,7 +44,7 @@ public class GltfModelKey extends ModelKey { } /** - * Registers and extension loader for th given extension name. + * Registers an extension loader for the given extension name. * For more information on extension please see glTF 2.0 extensions registry * https://github.com/KhronosGroup/glTF/blob/master/extensions/README.md *