more comment-only correction

accellbaker
Stephen Gold 6 years ago
parent 3851c35f08
commit 2356320d30
  1. 2
      jme3-android-examples/src/main/java/org/jmonkeyengine/jme3androidexamples/JmeFragment.java
  2. 12
      jme3-blender/src/main/java/com/jme3/scene/plugins/blender/file/Field.java
  3. 2
      jme3-blender/src/main/java/com/jme3/scene/plugins/blender/materials/MaterialContext.java
  4. 2
      jme3-blender/src/main/java/com/jme3/scene/plugins/blender/meshes/MeshHelper.java
  5. 2
      jme3-core/src/main/java/com/jme3/anim/AnimComposer.java
  6. 2
      jme3-core/src/main/java/com/jme3/anim/tween/Tweens.java
  7. 2
      jme3-core/src/main/java/com/jme3/animation/Animation.java
  8. 4
      jme3-core/src/main/java/com/jme3/animation/AnimationFactory.java
  9. 4
      jme3-core/src/main/java/com/jme3/app/state/AppStateManager.java
  10. 8
      jme3-core/src/main/java/com/jme3/environment/util/CubeMapWrapper.java
  11. 2
      jme3-core/src/main/java/com/jme3/math/MathUtils.java
  12. 4
      jme3-core/src/main/java/com/jme3/math/Plane.java
  13. 4
      jme3-core/src/main/java/com/jme3/post/FilterPostProcessor.java
  14. 2
      jme3-core/src/main/java/com/jme3/renderer/Renderer.java
  15. 8
      jme3-core/src/main/java/com/jme3/util/ListSort.java
  16. 10
      jme3-core/src/main/java/com/jme3/util/TangentBinormalGenerator.java
  17. 2
      jme3-core/src/main/java/com/jme3/util/mikktspace/MikktspaceTangentGenerator.java
  18. 4
      jme3-desktop/src/main/java/com/jme3/system/AWTTaskExecutor.java
  19. 2
      jme3-examples/src/main/java/jme3test/input/TestJoystick.java
  20. 2
      jme3-examples/src/main/java/jme3test/model/anim/TestAnimationFactory.java
  21. 4
      jme3-networking/src/main/java/com/jme3/network/kernel/Envelope.java
  22. 2
      jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GltfModelKey.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 {

@ -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

@ -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) {

@ -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()) {

@ -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);

@ -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) {

@ -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>(Track.class);
for (Savable savable : arr) {
tracks.add((Track) savable);

@ -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) {

@ -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

@ -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) {

@ -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;

@ -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 {
}
/**
* <code>toString</code> returns a string thta represents the string
* <code>toString</code> returns a string that represents the string
* representation of this plane. It represents the normal as a
* <code>Vector3f</code> object, so the format is the following:
* com.jme.math.Plane [Normal: org.jme.math.Vector3f [X=XX.XXXX, Y=YY.YYYY,

@ -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();

@ -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.
*

@ -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<T> {
/* 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<T> {
/* 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<T> {
/* 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;

@ -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<VertexData> splitVertices(Mesh mesh, List<VertexData> 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);

@ -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

@ -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;
/**
* <p>
* 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.
* </p>
* <p>
* This class is an AWT implementation of the <a href="http://www.oracle.com/technetwork/java/javase/overview/javafx-overview-2158620.html">JavaFX</a> original code provided by Alexander Brui (see <a href="https://github.com/JavaSaBr/JME3-JFX">JME3-FX</a>)

@ -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() );

@ -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);

@ -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 )
{

@ -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
*

Loading…
Cancel
Save