diff --git a/jme3-android-examples/src/main/java/org/jmonkeyengine/jme3androidexamples/MainActivity.java b/jme3-android-examples/src/main/java/org/jmonkeyengine/jme3androidexamples/MainActivity.java
index 7bde9d9c9..83a378ef8 100644
--- a/jme3-android-examples/src/main/java/org/jmonkeyengine/jme3androidexamples/MainActivity.java
+++ b/jme3-android-examples/src/main/java/org/jmonkeyengine/jme3androidexamples/MainActivity.java
@@ -214,7 +214,7 @@ public class MainActivity extends AppCompatActivity implements OnItemClickListen
/**
* User clicked a view on the screen. Check for the OK and Cancel buttons
- * and either start the applicaiton or exit.
+ * and either start the application or exit.
* @param view
*/
public void onClick(View view) {
diff --git a/jme3-android/src/main/java/com/jme3/input/android/AndroidSensorJoyInput.java b/jme3-android/src/main/java/com/jme3/input/android/AndroidSensorJoyInput.java
index cdd7e6494..846c9c2df 100644
--- a/jme3-android/src/main/java/com/jme3/input/android/AndroidSensorJoyInput.java
+++ b/jme3-android/src/main/java/com/jme3/input/android/AndroidSensorJoyInput.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -285,8 +285,8 @@ public class AndroidSensorJoyInput implements SensorEventListener {
}
/**
- * Calculates the device orientation based off the data recieved from the
- * Acceleration Sensor and Mangetic Field sensor
+ * Calculates the device orientation based off the data received from the
+ * Acceleration Sensor and Magnetic Field sensor
* Values are returned relative to the Earth.
*
* From the Android Doc
diff --git a/jme3-android/src/main/java/com/jme3/system/android/OGLESContext.java b/jme3-android/src/main/java/com/jme3/system/android/OGLESContext.java
index 508e81065..db185b002 100644
--- a/jme3-android/src/main/java/com/jme3/system/android/OGLESContext.java
+++ b/jme3-android/src/main/java/com/jme3/system/android/OGLESContext.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -136,7 +136,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex
// stops at the setFormat call without a crash.
// We look at the user setting for alpha bits and set the surfaceview
// PixelFormat to either Opaque, Transparent, or Translucent.
- // ConfigChooser will do it's best to honor the alpha requested by the user
+ // ConfigChooser will do its best to honor the alpha requested by the user
// For best rendering performance, use Opaque (alpha bits = 0).
int curAlphaBits = settings.getAlphaBits();
logger.log(Level.FINE, "curAlphaBits: {0}", curAlphaBits);
diff --git a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/constraints/SimulationNode.java b/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/constraints/SimulationNode.java
index 711e0a338..279b5311d 100644
--- a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/constraints/SimulationNode.java
+++ b/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/constraints/SimulationNode.java
@@ -237,7 +237,7 @@ public class SimulationNode {
}
}
- // ... add virtual tracks if neccessary, for bones that were altered but had no tracks before ...
+ // ... add virtual tracks if necessary, for bones that were altered but had no tracks before ...
for (Long boneOMA : alteredOmas) {
BoneContext boneContext = blenderContext.getBoneContext(boneOMA);
int boneIndex = skeleton.getBoneIndex(boneContext.getBone());
diff --git a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/curves/CurvesTemporalMesh.java b/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/curves/CurvesTemporalMesh.java
index 51a5aeb63..2ad8d3ff2 100644
--- a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/curves/CurvesTemporalMesh.java
+++ b/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/curves/CurvesTemporalMesh.java
@@ -37,7 +37,7 @@ import com.jme3.util.BufferUtils;
/**
* A temporal mesh for curves and surfaces. It works in similar way as TemporalMesh for meshes.
- * It prepares all neccessary lines and faces and allows to apply modifiers just like in regular temporal mesh.
+ * It prepares all necessary lines and faces and allows to apply modifiers just like in regular temporal mesh.
*
* @author Marcin Roguski (Kaelthas)
*/
@@ -210,7 +210,7 @@ public class CurvesTemporalMesh extends TemporalMesh {
}
/**
- * The method computes the value of a point at the certain relational distance from its beggining.
+ * The method computes the value of a point at the certain relational distance from its beginning.
* @param alongRatio
* the relative distance along the curve; should be a value between 0 and 1 inclusive;
* if the value exceeds the boundaries it is truncated to them
@@ -369,7 +369,7 @@ public class CurvesTemporalMesh extends TemporalMesh {
}
/**
- * The method loads the bevel object that sould be applied to curve. It can either be another curve or a generated one
+ * The method loads the bevel object that should be applied to curve. It can either be another curve or a generated one
* based on the bevel generating parameters in blender.
* @param curveStructure
* the structure with the curve's data (the curve being loaded, NOT the bevel curve)
@@ -707,7 +707,7 @@ public class CurvesTemporalMesh extends TemporalMesh {
/**
* the method applies scale for the given bevel points. The points table is
- * being modified so expect ypur result there.
+ * being modified so expect your result there.
*
* @param points
* the bevel points
@@ -726,7 +726,7 @@ public class CurvesTemporalMesh extends TemporalMesh {
/**
* A helper class that represents a single bezier line. It consists of Edge's and allows to
- * get a subline of a lentgh of the line.
+ * get a subline of a length of the line.
*
* @author Marcin Roguski (Kaelthas)
*/
@@ -776,7 +776,7 @@ public class CurvesTemporalMesh extends TemporalMesh {
}
if (cyclic) {
// if the first vertex is repeated at the end the distance will be = 0 so it won't affect the result, and if it is not repeated
- // then it is neccessary to add the length between the last and the first vertex
+ // then it is necessary to add the length between the last and the first vertex
length += vertices[vertices.length - 1].distance(vertices[0]);
}
}
@@ -834,7 +834,7 @@ public class CurvesTemporalMesh extends TemporalMesh {
}
/**
- * The method computes the value of a point at the certain relational distance from its beggining.
+ * The method computes the value of a point at the certain relational distance from its beginning.
* @param alongRatio
* the relative distance along the curve; should be a value between 0 and 1 inclusive;
* if the value exceeds the boundaries it is truncated to them
diff --git a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/file/DynamicArray.java b/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/file/DynamicArray.java
index d6d110054..748757ab0 100644
--- a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/file/DynamicArray.java
+++ b/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/file/DynamicArray.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -32,7 +32,7 @@
package com.jme3.scene.plugins.blender.file;
/**
- * An array that can be dynamically modified/
+ * An array that can be dynamically modified
* @author Marcin Roguski
* @param This control creates collision
+ * add/removes it from the physics space This control creates collision
* shapes for each bones of the skeleton when you call
* spatial.addControl(ragdollControl). multLocal
multiplies a provided vector to this vector
+ * multLocal
multiplies a provided vector by this vector
* internally, and returns a handle to this vector for easy chaining of
* calls. If the provided vector is null, null is returned.
*
* @param vec
- * the vector to mult to this vector.
+ * the vector to multiply by this vector.
* @return this
*/
public Vector3d multLocal(Vector3d vec) {
@@ -522,7 +522,7 @@ public final class Vector3d implements Savable, Cloneable, Serializable {
}
/**
- * multLocal
multiplies a provided vector to this vector
+ * multLocal
multiplies a provided vector by this vector
* internally, and returns a handle to this vector for easy chaining of
* calls. If the provided vector is null, null is returned.
*
@@ -539,7 +539,7 @@ public final class Vector3d implements Savable, Cloneable, Serializable {
}
/**
- * multLocal
multiplies a provided vector to this vector
+ * multLocal
multiplies a provided vector by this vector
* internally, and returns a handle to this vector for easy chaining of
* calls. If the provided vector is null, null is returned.
*
@@ -657,7 +657,7 @@ public final class Vector3d implements Savable, Cloneable, Serializable {
}
/**
- * subtractLocal
subtracts a provided vector to this vector
+ * subtractLocal
subtracts a provided vector from this vector
* internally, and returns a handle to this vector for easy chaining of
* calls. If the provided vector is null, null is returned.
*
@@ -825,7 +825,7 @@ public final class Vector3d implements Savable, Cloneable, Serializable {
/**
* hashCode
returns a unique code for this vector object based
- * on it's values. If two vectors are logically equivalent, they will return
+ * on its values. If two vectors are logically equivalent, they will return
* the same hash code value.
* @return the hash code value of this vector.
*/
diff --git a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/modifiers/SubdivisionSurfaceModifier.java b/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/modifiers/SubdivisionSurfaceModifier.java
index 748f2c7f2..402efc3d3 100644
--- a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/modifiers/SubdivisionSurfaceModifier.java
+++ b/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/modifiers/SubdivisionSurfaceModifier.java
@@ -47,7 +47,7 @@ public class SubdivisionSurfaceModifier extends Modifier {
private Set
This should be the case if you imported an animated
* model from Ogre or blender.
Note enabling/disabling the control
- * add/removes it from the physic space
There are 2 modes for this control :
* SimpleWaterProcessor waterProcessor = new SimpleWaterProcessor(assetManager);
@@ -514,7 +514,7 @@ public class SimpleWaterProcessor implements SceneProcessor {
/**
- * retruns true if the waterprocessor is in debug mode
+ * returns true if the waterprocessor is in debug mode
* @return
*/
public boolean isDebug() {
diff --git a/jme3-effects/src/main/java/com/jme3/water/WaterFilter.java b/jme3-effects/src/main/java/com/jme3/water/WaterFilter.java
index a1240d12d..f4f6e3af7 100644
--- a/jme3-effects/src/main/java/com/jme3/water/WaterFilter.java
+++ b/jme3-effects/src/main/java/com/jme3/water/WaterFilter.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -864,7 +864,7 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
}
/**
- * Sets the shinines factor of the water
+ * Sets the shininess factor of the water
* default is 0.7f
* @param shininess
*/
@@ -876,7 +876,7 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
}
/**
- * retruns the speed of the waves
+ * returns the speed of the waves
* @return
*/
public float getSpeed() {
diff --git a/jme3-examples/src/main/java/jme3test/bullet/PhysicsTestHelper.java b/jme3-examples/src/main/java/jme3test/bullet/PhysicsTestHelper.java
index bb057606e..531331d13 100644
--- a/jme3-examples/src/main/java/jme3test/bullet/PhysicsTestHelper.java
+++ b/jme3-examples/src/main/java/jme3test/bullet/PhysicsTestHelper.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -206,7 +206,7 @@ public class PhysicsTestHelper {
}
/**
- * creates the necessary inputlistener and action to shoot balls from teh camera
+ * creates the necessary inputlistener and action to shoot balls from the camera
* @param app
* @param rootNode
* @param space
diff --git a/jme3-examples/src/main/java/jme3test/bullet/TestKinematicAddToPhysicsSpaceIssue.java b/jme3-examples/src/main/java/jme3test/bullet/TestKinematicAddToPhysicsSpaceIssue.java
index e63cd03e5..84bf607a4 100644
--- a/jme3-examples/src/main/java/jme3test/bullet/TestKinematicAddToPhysicsSpaceIssue.java
+++ b/jme3-examples/src/main/java/jme3test/bullet/TestKinematicAddToPhysicsSpaceIssue.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -66,9 +66,9 @@ public class TestKinematicAddToPhysicsSpaceIssue extends SimpleApplication {
physicsSphere.getControl(RigidBodyControl.class).setPhysicsLocation(new Vector3f(3, 6, 0));
rootNode.attachChild(physicsSphere);
- //Setting the rigidBody to kinematic before adding it to the physic space
+ //Setting the rigidBody to kinematic before adding it to the physics space
physicsSphere.getControl(RigidBodyControl.class).setKinematic(true);
- //adding it to the physic space
+ //adding it to the physics space
getPhysicsSpace().add(physicsSphere);
//Making it not kinematic again, it should fall under gravity, it doesn't
physicsSphere.getControl(RigidBodyControl.class).setKinematic(false);
@@ -78,7 +78,7 @@ public class TestKinematicAddToPhysicsSpaceIssue extends SimpleApplication {
physicsSphere2.getControl(RigidBodyControl.class).setPhysicsLocation(new Vector3f(5, 6, 0));
rootNode.attachChild(physicsSphere2);
- //Adding the rigid body to physic space
+ //Adding the rigid body to physics space
getPhysicsSpace().add(physicsSphere2);
//making it kinematic
physicsSphere2.getControl(RigidBodyControl.class).setKinematic(false);
diff --git a/jme3-examples/src/main/java/jme3test/input/TestChaseCamera.java b/jme3-examples/src/main/java/jme3test/input/TestChaseCamera.java
index b6041a519..d933f9638 100644
--- a/jme3-examples/src/main/java/jme3test/input/TestChaseCamera.java
+++ b/jme3-examples/src/main/java/jme3test/input/TestChaseCamera.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -97,7 +97,7 @@ public class TestChaseCamera extends SimpleApplication implements AnalogListener
//WARNING : setting this trigger disable the rotation on right and left mouse button click
//chaseCam.setToggleRotationTrigger(new MouseButtonTrigger(MouseInput.BUTTON_MIDDLE));
- //Uncomment this to set mutiple triggers to enable rotation of the cam
+ //Uncomment this to set multiple triggers to enable rotation of the cam
//Here spade bar and middle mouse button
//chaseCam.setToggleRotationTrigger(new MouseButtonTrigger(MouseInput.BUTTON_MIDDLE),new KeyTrigger(KeyInput.KEY_SPACE));
diff --git a/jme3-examples/src/main/java/jme3test/input/TestChaseCameraAppState.java b/jme3-examples/src/main/java/jme3test/input/TestChaseCameraAppState.java
index a3db00ff2..00d6dd81a 100644
--- a/jme3-examples/src/main/java/jme3test/input/TestChaseCameraAppState.java
+++ b/jme3-examples/src/main/java/jme3test/input/TestChaseCameraAppState.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -90,7 +90,7 @@ public class TestChaseCameraAppState extends SimpleApplication implements Analog
//WARNING : setting this trigger disable the rotation on right and left mouse button click
//chaseCamAS.setToggleRotationTrigger(new MouseButtonTrigger(MouseInput.BUTTON_MIDDLE));
- //Uncomment this to set mutiple triggers to enable rotation of the cam
+ //Uncomment this to set multiple triggers to enable rotation of the cam
//Here space bar and middle mouse button
//chaseCamAS.setToggleRotationTrigger(new MouseButtonTrigger(MouseInput.BUTTON_MIDDLE),new KeyTrigger(KeyInput.KEY_SPACE));
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 55768517c..dfd249711 100644
--- a/jme3-examples/src/main/java/jme3test/model/anim/TestAnimationFactory.java
+++ b/jme3-examples/src/main/java/jme3test/model/anim/TestAnimationFactory.java
@@ -52,14 +52,14 @@ public class TestAnimationFactory extends SimpleApplication {
//creating a translation keyFrame at time = 3 with a translation on the x axis of 5 WU
animationFactory.addTimeTranslation(3, new Vector3f(5, 0, 0));
- //reseting the translation to the start position at time = 6
+ //resetting the translation to the start position at time = 6
animationFactory.addTimeTranslation(6, new Vector3f(0, 0, 0));
//Creating a scale keyFrame at time = 2 with the unit scale.
animationFactory.addTimeScale(2, new Vector3f(1, 1, 1));
//Creating a scale keyFrame at time = 4 scaling to 1.5
animationFactory.addTimeScale(4, new Vector3f(1.5f, 1.5f, 1.5f));
- //reseting the scale to the start value at time = 5
+ //resetting the scale to the start value at time = 5
animationFactory.addTimeScale(5, new Vector3f(1, 1, 1));
diff --git a/jme3-examples/src/main/java/jme3test/network/TestLatency.java b/jme3-examples/src/main/java/jme3test/network/TestLatency.java
index 6f49a003b..c47ae0556 100644
--- a/jme3-examples/src/main/java/jme3test/network/TestLatency.java
+++ b/jme3-examples/src/main/java/jme3test/network/TestLatency.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -85,7 +85,7 @@ public class TestLatency {
long curTime = getTime();
//System.out.println("Time sent: " + timeMsg.timeSent);
//System.out.println("Time received by server: " + timeMsg.timeReceived);
- //System.out.println("Time recieved by client: " + curTime);
+ //System.out.println("Time received by client: " + curTime);
long latency = (curTime - timeMsg.timeSent);
System.out.println("Latency: " + (latency) + " ms");
diff --git a/jme3-examples/src/main/java/jme3test/terrain/TerrainTest.java b/jme3-examples/src/main/java/jme3test/terrain/TerrainTest.java
index 7eff18b8f..5da9d9d2b 100644
--- a/jme3-examples/src/main/java/jme3test/terrain/TerrainTest.java
+++ b/jme3-examples/src/main/java/jme3test/terrain/TerrainTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -53,7 +53,7 @@ import com.jme3.texture.Texture.WrapMode;
/**
* Demonstrates how to use terrain.
* The base terrain class it uses is TerrainQuad, which is a quad tree of actual
- * meshes called TerainPatches.
+ * meshes called TerrainPatches.
* There are a couple options for the terrain in this test:
* The first is wireframe mode. Here you can see the underlying trianglestrip structure.
* You will notice some off lines; these are degenerate triangles and are part of the
@@ -203,7 +203,7 @@ public class TerrainTest extends SimpleApplication {
matRock.setBoolean("useTriPlanarMapping", true);
// planar textures don't use the mesh's texture coordinates but real world coordinates,
// so we need to convert these texture coordinate scales into real world scales so it looks
- // the same when we switch to/from tr-planar mode
+ // the same when we switch to/from tri-planar mode
matRock.setFloat("Tex1Scale", 1f / (float) (512f / grassScale));
matRock.setFloat("Tex2Scale", 1f / (float) (512f / dirtScale));
matRock.setFloat("Tex3Scale", 1f / (float) (512f / rockScale));
diff --git a/jme3-examples/src/main/java/jme3test/tools/TestSaveGame.java b/jme3-examples/src/main/java/jme3test/tools/TestSaveGame.java
index d9ef51db1..8e90d181a 100644
--- a/jme3-examples/src/main/java/jme3test/tools/TestSaveGame.java
+++ b/jme3-examples/src/main/java/jme3test/tools/TestSaveGame.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -62,7 +62,7 @@ public class TestSaveGame extends SimpleApplication {
Spatial model = (Spatial) assetManager.loadModel("Models/Oto/Oto.mesh.xml");
myPlayer.attachChild(model);
- //before saving the game, the model should be detached so its not saved along with the node
+ //before saving the game, the model should be detached so it's not saved along with the node
myPlayer.detachAllChildren();
SaveGame.saveGame("mycompany/mygame", "savegame_001", myPlayer);
diff --git a/jme3-jbullet/src/main/java/com/jme3/bullet/joints/HingeJoint.java b/jme3-jbullet/src/main/java/com/jme3/bullet/joints/HingeJoint.java
index 96dea1d72..b25f762a4 100644
--- a/jme3-jbullet/src/main/java/com/jme3/bullet/joints/HingeJoint.java
+++ b/jme3-jbullet/src/main/java/com/jme3/bullet/joints/HingeJoint.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -99,7 +99,7 @@ public class HingeJoint extends PhysicsJoint {
* @param high the high limit in radians.
* @param _softness the factor at which the velocity error correction starts operating,i.e a softness of 0.9 means that the vel. corr starts at 90% of the limit range.
* @param _biasFactor the magnitude of the position correction. It tells you how strictly the position error (drift ) is corrected.
- * @param _relaxationFactor the rate at which velocity errors are corrected. This can be seen as the strength of the limits. A low value will make the the limits more spongy.
+ * @param _relaxationFactor the rate at which velocity errors are corrected. This can be seen as the strength of the limits. A low value will make the limits more spongy.
*/
public void setLimit(float low, float high, float _softness, float _biasFactor, float _relaxationFactor) {
biasFactor = _biasFactor;
diff --git a/jme3-jogl/src/main/java/com/jme3/renderer/jogl/TextureUtil.java b/jme3-jogl/src/main/java/com/jme3/renderer/jogl/TextureUtil.java
index 8f3c5b156..17bf21bfd 100644
--- a/jme3-jogl/src/main/java/com/jme3/renderer/jogl/TextureUtil.java
+++ b/jme3-jogl/src/main/java/com/jme3/renderer/jogl/TextureUtil.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -294,7 +294,7 @@ public class TextureUtil {
int[] mipSizes = image.getMipMapSizes();
int pos = 0;
- // TODO: Remove unneccessary allocation
+ // TODO: Remove unnecessary allocation
if (mipSizes == null){
if (data != null)
mipSizes = new int[]{ data.capacity() };
@@ -473,7 +473,7 @@ public class TextureUtil {
int[] mipSizes = image.getMipMapSizes();
int pos = 0;
- // TODO: Remove unneccessary allocation
+ // TODO: Remove unnecessary allocation
if (mipSizes == null){
if (data != null) {
mipSizes = new int[]{ data.capacity() };
diff --git a/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglAbstractDisplay.java b/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglAbstractDisplay.java
index 802b12a0f..e019008f2 100644
--- a/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglAbstractDisplay.java
+++ b/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglAbstractDisplay.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -66,13 +66,13 @@ public abstract class LwjglAbstractDisplay extends LwjglContext implements Runna
public abstract Type getType();
/**
- * Set the title if its a windowed display
+ * Set the title if it's a windowed display
* @param title
*/
public abstract void setTitle(String title);
/**
- * Restart if its a windowed or full-screen display.
+ * Restart if it's a windowed or full-screen display.
*/
public abstract void restart();
diff --git a/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglSmoothingTimer.java b/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglSmoothingTimer.java
index bd2e275ed..213d472c5 100644
--- a/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglSmoothingTimer.java
+++ b/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglSmoothingTimer.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -76,7 +76,7 @@ public class LwjglSmoothingTimer extends Timer {
/**
* Constructor builds a Timer
object. All values will be
- * initialized to it's default values.
+ * initialized to its default values.
*/
public LwjglSmoothingTimer() {
reset();
@@ -144,7 +144,7 @@ public class LwjglSmoothingTimer extends Timer {
if ( oldTime == -1 ) {
// For the first frame use 60 fps. This value will not be counted in further averages.
// This is done so initialization code between creating the timer and the first
- // frame is not counted as a single frame on it's own.
+ // frame is not counted as a single frame on its own.
lastTPF = 1 / 60f;
lastFPS = 1f / lastTPF;
return;
diff --git a/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglTimer.java b/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglTimer.java
index 6adf03323..fb69a5550 100644
--- a/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglTimer.java
+++ b/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglTimer.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -63,7 +63,7 @@ public class LwjglTimer extends Timer {
/**
* Constructor builds a Timer
object. All values will be
- * initialized to it's default values.
+ * initialized to its default values.
*/
public LwjglTimer() {
reset();
diff --git a/jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java b/jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java
index 24c6b3fd9..27612a991 100644
--- a/jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java
+++ b/jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -101,7 +101,7 @@ public abstract class LwjglWindow extends LwjglContext implements Runnable {
}
/**
- * Set the title if its a windowed display
+ * Set the title if it's a windowed display
*
* @param title the title to set
*/
@@ -112,7 +112,7 @@ public abstract class LwjglWindow extends LwjglContext implements Runnable {
}
/**
- * Restart if its a windowed or full-screen display.
+ * Restart if it's a windowed or full-screen display.
*/
public void restart() {
if (created.get()) {
diff --git a/jme3-networking/src/main/java/com/jme3/network/base/NioKernelFactory.java b/jme3-networking/src/main/java/com/jme3/network/base/NioKernelFactory.java
index 1f44fed0a..024c4d009 100644
--- a/jme3-networking/src/main/java/com/jme3/network/base/NioKernelFactory.java
+++ b/jme3-networking/src/main/java/com/jme3/network/base/NioKernelFactory.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -37,7 +37,7 @@ import java.io.IOException;
/**
- * KernelFactory implemention for creating TCP kernels
+ * KernelFactory implementation for creating TCP kernels
* using the NIO selector model.
*
* @version $Revision$
diff --git a/jme3-networking/src/main/java/com/jme3/network/service/rmi/RmiHostedService.java b/jme3-networking/src/main/java/com/jme3/network/service/rmi/RmiHostedService.java
index ebd0e5908..00110a661 100644
--- a/jme3-networking/src/main/java/com/jme3/network/service/rmi/RmiHostedService.java
+++ b/jme3-networking/src/main/java/com/jme3/network/service/rmi/RmiHostedService.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015 jMonkeyEngine
+ * Copyright (c) 2015-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -167,7 +167,7 @@ public class RmiHostedService extends AbstractHostedService {
}
/**
- * Returns the RMI registry for the specific HostedConection. Each connection
+ * Returns the RMI registry for the specific HostedConnection. Each connection
* has its own registry with its own connection-specific shared objects.
*/
public RmiRegistry getRmiRegistry( HostedConnection hc ) {
diff --git a/jme3-networking/src/main/java/com/jme3/network/util/AbstractMessageDelegator.java b/jme3-networking/src/main/java/com/jme3/network/util/AbstractMessageDelegator.java
index a73496ea8..f8b1be2f5 100644
--- a/jme3-networking/src/main/java/com/jme3/network/util/AbstractMessageDelegator.java
+++ b/jme3-networking/src/main/java/com/jme3/network/util/AbstractMessageDelegator.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015 jMonkeyEngine
+ * Copyright (c) 2015-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -90,7 +90,7 @@ public abstract class AbstractMessageDelegator
/**
* Returns true if the specified method is valid for the specified
* message type. This is used internally during automapping to
- * provide implementation specific filting of methods.
+ * provide implementation specific filtering of methods.
* This implementation checks for methods that take either the connection and message
* type arguments (in that order) or just the message type.
*/
@@ -129,7 +129,7 @@ public abstract class AbstractMessageDelegator
/**
* Convenience method that returns the message type as
- * reflecively determined for a particular method. This
+ * reflectively determined for a particular method. This
* only works with methods that actually have arguments.
* This implementation returns the last element of the method's
* getParameterTypes() array, thus supporting both
@@ -167,7 +167,7 @@ public abstract class AbstractMessageDelegator
/**
* Returns true if the specified method name is allowed.
* This is used by automapping to determine if a method
- * should be rejected purely on name. Default implemention
+ * should be rejected purely on name. Default implementation
* always returns true.
*/
protected boolean allowName( String name ) {
diff --git a/jme3-niftygui/src/main/java/com/jme3/niftygui/NiftyJmeDisplay.java b/jme3-niftygui/src/main/java/com/jme3/niftygui/NiftyJmeDisplay.java
index 4f6d6de7b..8c9102ff0 100644
--- a/jme3-niftygui/src/main/java/com/jme3/niftygui/NiftyJmeDisplay.java
+++ b/jme3-niftygui/src/main/java/com/jme3/niftygui/NiftyJmeDisplay.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -167,7 +167,7 @@ public class NiftyJmeDisplay implements SceneProcessor {
*
* Currently you have to make sure to not use more image space than this single texture provides. However, Nifty
* tries to be smart about this and internally will make sure that only the images are uploaded that your GUI
- * really needs. So in general this shoudln't be an issue.
+ * really needs. So in general this shouldn't be an issue.
*
* A complete re-organisation of the texture atlas happens when a Nifty screen ends and another begins. Dynamically
* adding images while a screen is running is supported as well.
diff --git a/jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/MaterialAdapter.java b/jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/MaterialAdapter.java
index 6662a4200..602ad961f 100644
--- a/jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/MaterialAdapter.java
+++ b/jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/MaterialAdapter.java
@@ -13,7 +13,7 @@ import java.util.Map;
/**
* A MaterialAdapter allows to map a GLTF material to a JME material.
- * It maps each gltf parameter to it's matching parameter in the JME material,
+ * It maps each gltf parameter to its matching parameter in the JME material,
* and allows for some conversion if the JME material model doesn't exactly match the gltf material model
* Created by Nehon on 08/08/2017.
*/
diff --git a/jme3-plugins/src/ogre/java/com/jme3/scene/plugins/ogre/MaterialLoader.java b/jme3-plugins/src/ogre/java/com/jme3/scene/plugins/ogre/MaterialLoader.java
index c40437bbc..ed11ddd25 100644
--- a/jme3-plugins/src/ogre/java/com/jme3/scene/plugins/ogre/MaterialLoader.java
+++ b/jme3-plugins/src/ogre/java/com/jme3/scene/plugins/ogre/MaterialLoader.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -144,7 +144,7 @@ public class MaterialLoader implements AssetLoader {
textures[texUnit].setAnisotropicFilter(loadedTexture.getAnisotropicFilter());
textures[texUnit].setKey(loadedTexture.getKey());
- // XXX: Is this really neccessary?
+ // XXX: Is this really necessary?
textures[texUnit].setWrap(WrapMode.Repeat);
if (texName != null){
textures[texUnit].setName(texName);
diff --git a/jme3-terrain/src/main/java/com/jme3/terrain/GeoMap.java b/jme3-terrain/src/main/java/com/jme3/terrain/GeoMap.java
index efa823c66..a6774400a 100644
--- a/jme3-terrain/src/main/java/com/jme3/terrain/GeoMap.java
+++ b/jme3-terrain/src/main/java/com/jme3/terrain/GeoMap.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -127,7 +127,7 @@ public class GeoMap implements Savable {
* If false, then the data is unavailable- must be loaded with load()
* before the methods getHeight/getNormal can be used
*
- * @return wether the geomap data is loaded in system memory
+ * @return whether the geomap data is loaded in system memory
*/
public boolean isLoaded() {
return true;
diff --git a/jme3-terrain/src/main/java/com/jme3/terrain/Terrain.java b/jme3-terrain/src/main/java/com/jme3/terrain/Terrain.java
index d96bb1340..fefba99bc 100644
--- a/jme3-terrain/src/main/java/com/jme3/terrain/Terrain.java
+++ b/jme3-terrain/src/main/java/com/jme3/terrain/Terrain.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -87,7 +87,7 @@ public interface Terrain {
* Each xz coordinate entry matches to a height entry, 1 for 1. So the
* first coordinate matches to the first height value, the last to the
* last etc.
- * @param xz a list of coordinates where the hight will be set
+ * @param xz a list of coordinates where the height will be set
* @param height the heights that match the xz coordinates
*/
public void setHeight(List xz, List height);
@@ -104,7 +104,7 @@ public interface Terrain {
* Each xz coordinate entry matches to a height entry, 1 for 1. So the
* first coordinate matches to the first height value, the last to the
* last etc.
- * @param xz a list of coordinates where the hight will be adjusted
+ * @param xz a list of coordinates where the height will be adjusted
* @param height +- value to adjust the height by, that matches the xz coordinates
*/
public void adjustHeight(List xz, List height);
diff --git a/jme3-terrain/src/main/java/com/jme3/terrain/geomipmap/TerrainPatch.java b/jme3-terrain/src/main/java/com/jme3/terrain/geomipmap/TerrainPatch.java
index 626eb4fd5..eb3263960 100644
--- a/jme3-terrain/src/main/java/com/jme3/terrain/geomipmap/TerrainPatch.java
+++ b/jme3-terrain/src/main/java/com/jme3/terrain/geomipmap/TerrainPatch.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -74,7 +74,7 @@ import java.util.List;
* is a mathematical limit on the number of times the 'size' of the patch can be divided by two. However there is a -1 to that
* for now until I add in a custom index buffer calculation for that max level, the current algorithm does not go that far.
*
- * You can supply a LodThresholdCalculator for use in determining when the LOD should change. It's API will no doubt change
+ * You can supply a LodThresholdCalculator for use in determining when the LOD should change. Its API will no doubt change
* in the near future. Right now it defaults to just changing LOD every two patch sizes. So if a patch has a size of 65,
* then the LOD changes every 130 units away.
*
@@ -86,7 +86,7 @@ public class TerrainPatch extends Geometry {
protected int lod = 0; // this terrain patch's LOD
private int maxLod = -1;
protected int previousLod = -1;
- protected int lodLeft, lodTop, lodRight, lodBottom; // it's neighbour's LODs
+ protected int lodLeft, lodTop, lodRight, lodBottom; // its neighbour's LODs
protected int size;
diff --git a/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/CombinerHeightMap.java b/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/CombinerHeightMap.java
index 283f14974..e36dd03a6 100644
--- a/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/CombinerHeightMap.java
+++ b/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/CombinerHeightMap.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -36,7 +36,7 @@ import java.util.logging.Logger;
/**
* CombinerHeightMap
generates a new height map based on
* two provided height maps. These had maps can either be added together
- * or substracted from each other. Each heightmap has a weight to
+ * or subtracted from each other. Each heightmap has a weight to
* determine how much one will affect the other. By default it is set to
* 0.5, 0.5 and meaning the two heightmaps are averaged evenly. This
* value can be adjusted at will, as long as the two factors are equal
diff --git a/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/FaultHeightMap.java b/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/FaultHeightMap.java
index 2518eb897..5bef6a912 100644
--- a/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/FaultHeightMap.java
+++ b/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/FaultHeightMap.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -240,7 +240,7 @@ public class FaultHeightMap extends AbstractHeightMap {
return val;
}
}
- //shoudn't go here
+ //shouldn't go here
throw new RuntimeException("Code needs update to switch allcases");
}
diff --git a/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/Namer.java b/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/Namer.java
index cfd9d6755..a260d7b65 100644
--- a/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/Namer.java
+++ b/jme3-terrain/src/main/java/com/jme3/terrain/heightmap/Namer.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009-2012 jMonkeyEngine
+ * Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -38,7 +38,7 @@ package com.jme3.terrain.heightmap;
public interface Namer {
/**
- * Gets a name for a heightmap tile given it's cell id
+ * Gets a name for a heightmap tile given its cell id
* @param x
* @param y
* @return
diff --git a/jme3-terrain/src/main/java/com/jme3/terrain/noise/filter/HydraulicErodeFilter.java b/jme3-terrain/src/main/java/com/jme3/terrain/noise/filter/HydraulicErodeFilter.java
index db0580f63..ec23d21eb 100644
--- a/jme3-terrain/src/main/java/com/jme3/terrain/noise/filter/HydraulicErodeFilter.java
+++ b/jme3-terrain/src/main/java/com/jme3/terrain/noise/filter/HydraulicErodeFilter.java
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2011, Novyon Events
+ * Copyright (c) 2011-2018, Novyon Events
*
* All rights reserved.
*
@@ -100,7 +100,7 @@ public class HydraulicErodeFilter extends AbstractFilter {
}
}
- // step 3. water is transported to it's neighbours
+ // step 3. water is transported to its neighbours
float a = ga[idx] + wt[idx];
// float[] aj = new float[idxrel.length];
float amax = 0;