Skip to content

Commit 52568d7

Browse files
authored
correct errors in documentation (#1581)
* correct typos in comments * correct typos in Gradle variables * correct typos in Java comments and Javadoc * correct typos in non-Java comments * Skeleton.java: don't replace "matrixes" with "matrices"
1 parent 13baa3d commit 52568d7

File tree

268 files changed

+460
-460
lines changed

Some content is hidden

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

268 files changed

+460
-460
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# is running the build.
2727
# >> Configure JAVADOC
2828
# JAVADOC_GHPAGES_REPO="riccardoblsandbox/javadoc.jmonkeyengine.org.git"
29-
# Generate a deloy key
29+
# Generate a deploy key
3030
# ssh-keygen -t rsa -b 4096 -C "[email protected]" -f javadoc_deploy
3131
# Set
3232
# JAVADOC_GHPAGES_DEPLOY_PRIVKEY="......."

build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -181,18 +181,18 @@ gradle.rootProject.ext.set("usePrebuildNatives", buildNativeProjects!="true");
181181
if (skipPrebuildLibraries != "true" && buildNativeProjects != "true") {
182182
String rootPath = rootProject.projectDir.absolutePath
183183

184-
Properties nativesSnasphotProp = new Properties()
185-
File nativesSnasphotPropF = new File("${rootPath}/natives-snapshot.properties");
184+
Properties nativesSnapshotProp = new Properties()
185+
File nativesSnapshotPropF = new File("${rootPath}/natives-snapshot.properties");
186186

187-
if (nativesSnasphotPropF.exists()) {
187+
if (nativesSnapshotPropF.exists()) {
188188

189-
nativesSnasphotPropF.withInputStream { nativesSnasphotProp.load(it) }
189+
nativesSnapshotPropF.withInputStream { nativesSnapshotProp.load(it) }
190190

191-
String nativesSnasphot = nativesSnasphotProp.getProperty("natives.snapshot");
192-
String nativesUrl = PREBUILD_NATIVES_URL.replace('${natives.snapshot}', nativesSnasphot)
191+
String nativesSnapshot = nativesSnapshotProp.getProperty("natives.snapshot");
192+
String nativesUrl = PREBUILD_NATIVES_URL.replace('${natives.snapshot}', nativesSnapshot)
193193
println "Use natives snapshot: " + nativesUrl
194194

195-
String nativesZipFile = "${rootPath}" + File.separator + "build" + File.separator + nativesSnasphot + "-natives.zip"
195+
String nativesZipFile = "${rootPath}" + File.separator + "build" + File.separator + nativesSnapshot + "-natives.zip"
196196
String nativesPath = "${rootPath}" + File.separator + "build" + File.separator + "native"
197197

198198

jme3-android-examples/src/main/java/org/jmonkeyengine/jme3androidexamples/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ private boolean checkClassName(String className) {
263263
boolean include = true;
264264
/* check to see if the class in inside the rootPackage package */
265265
if (className.startsWith(rootPackage)) {
266-
/* check to see if the class contains any of the exlusion strings */
266+
/* check to see if the class contains any of the exclusion strings */
267267
for (int i = 0; i < exclusions.size(); i++) {
268268
if (className.contains(exclusions.get(i))) {
269269
Log.d(TAG, "Skipping Class " + className + ". Includes exclusion string: " + exclusions.get(i) + ".");

jme3-android-native/decode.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ if (ndkExists && buildNativeProjects == "true") {
9696

9797
jar.into("lib") { from decodeBuildLibsDir }
9898

99-
// Helper class to wrap ant dowload task
99+
// Helper class to wrap ant download task
100100
class MyDownload extends DefaultTask {
101101
@Input
102102
String sourceUrl

jme3-android-native/openalsoft.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ if (ndkExists && buildNativeProjects == "true") {
124124

125125
jar.into("lib") { from openalsoftBuildLibsDir }
126126

127-
// Helper class to wrap ant dowload task
127+
// Helper class to wrap ant download task
128128
class MyDownload extends DefaultTask {
129129
@Input
130130
String sourceUrl

jme3-android/src/main/java/com/jme3/app/AndroidHarness.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public void onCreate(Bundle savedInstanceState) {
211211
logger.log(Level.FINE, "Using Retained App");
212212
this.app = data.app;
213213
} else {
214-
// Discover the screen reolution
214+
// Discover the screen resolution
215215
//TODO try to find a better way to get a hand on the resolution
216216
WindowManager wind = this.getWindowManager();
217217
Display disp = wind.getDefaultDisplay();

jme3-android/src/main/java/com/jme3/input/android/AndroidGestureProcessor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009-2012 jMonkeyEngine
2+
* Copyright (c) 2009-2021 jMonkeyEngine
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -116,11 +116,11 @@ public void onLongPress(MotionEvent event) {
116116

117117
@Override
118118
public boolean onScroll(MotionEvent startEvent, MotionEvent endEvent, float distX, float distY) {
119-
// if not scaleInProgess, send scroll events. This is to avoid sending
119+
// if not scaleInProgress, send scroll events. This is to avoid sending
120120
// scroll events when one of the fingers is lifted just before the other one.
121121
// Avoids sending the scroll for that brief period of time.
122122
// Return true so that the next event doesn't accumulate the distX and distY values.
123-
// Apparantly, both distX and distY are negative.
123+
// Apparently, both distX and distY are negative.
124124
// Negate distX to get the real value, but leave distY negative to compensate
125125
// for the fact that jME has y=0 at bottom where Android has y=0 at top.
126126
if (!touchInput.getScaleDetector().isInProgress()) {

jme3-android/src/main/java/com/jme3/input/android/AndroidJoyInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
* case, when joystick.rumble(rumbleAmount) is called, the Android device will vibrate
6060
* if the device has a built in vibrate motor.
6161
*
62-
* Because Andorid does not allow for the user to define the intensity of the
62+
* Because Android does not allow for the user to define the intensity of the
6363
* vibration, the rumble amount (ie strength) is converted into vibration pulses
6464
* The stronger the strength amount, the shorter the delay between pulses. If
6565
* amount is 1, then the vibration stays on the whole time. If amount is 0.5,

jme3-android/src/main/java/com/jme3/input/android/AndroidTouchInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
* AndroidTouchInput is the base class that receives touch inputs from the
5858
* Android system and creates the TouchEvents for jME. This class is designed
5959
* to handle the base touch events for Android rev 9 (Android 2.3). This is
60-
* extended by other classes to add features that were introducted after
60+
* extended by other classes to add features that were introduced after
6161
* Android rev 9.
6262
*
6363
* @author iwgeric

jme3-bullet/src/common/java/com/jme3/bullet/control/BetterCharacterControl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public void prePhysicsTick(PhysicsSpace space, float tpf) {
219219
float designatedVelocity = walkDirection.length();
220220
if (designatedVelocity > 0) {
221221
Vector3f localWalkDirection = vars.vect1;
222-
//normalize walkdirection
222+
//normalize walkDirection
223223
localWalkDirection.set(walkDirection).normalizeLocal();
224224
//check for the existing velocity in the desired direction
225225
float existingVelocity = velocity.dot(localWalkDirection);

0 commit comments

Comments
 (0)