Skip to content

Commit 4db02fa

Browse files
committed
add javadoc to avoid Java15 "no comment" warnings
1 parent c56d26c commit 4db02fa

File tree

4 files changed

+88
-4
lines changed

4 files changed

+88
-4
lines changed

jme3-core/src/main/java/com/jme3/bounding/BoundingBox.java

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,14 @@ public BoundingBox(BoundingBox source) {
102102
this.zExtent = source.zExtent;
103103
}
104104

105+
/**
106+
* Instantiate a BoundingBox with the specified extremes.
107+
*
108+
* @param min the desired minimum coordinate value for each axis (not null,
109+
* not altered)
110+
* @param max the desired maximum coordinate value for each axis (not null,
111+
* not altered)
112+
*/
105113
public BoundingBox(Vector3f min, Vector3f max) {
106114
setMinMax(min, max);
107115
}
@@ -1009,18 +1017,38 @@ public Vector3f getExtent(Vector3f store) {
10091017
return store;
10101018
}
10111019

1020+
/**
1021+
* Determine the X-axis distance between the center and the boundary.
1022+
*
1023+
* @return the distance
1024+
*/
10121025
public float getXExtent() {
10131026
return xExtent;
10141027
}
10151028

1029+
/**
1030+
* Determine the Y-axis distance between the center and the boundary.
1031+
*
1032+
* @return the distance
1033+
*/
10161034
public float getYExtent() {
10171035
return yExtent;
10181036
}
10191037

1038+
/**
1039+
* Determine the Z-axis distance between the center and the boundary.
1040+
*
1041+
* @return the distance
1042+
*/
10201043
public float getZExtent() {
10211044
return zExtent;
10221045
}
10231046

1047+
/**
1048+
* Alter the X-axis distance between the center and the boundary.
1049+
*
1050+
* @param xExtent the desired distance (≥0)
1051+
*/
10241052
public void setXExtent(float xExtent) {
10251053
if (xExtent < 0) {
10261054
throw new IllegalArgumentException();
@@ -1029,6 +1057,11 @@ public void setXExtent(float xExtent) {
10291057
this.xExtent = xExtent;
10301058
}
10311059

1060+
/**
1061+
* Alter the Y-axis distance between the center and the boundary.
1062+
*
1063+
* @param yExtent the desired distance (&ge;0)
1064+
*/
10321065
public void setYExtent(float yExtent) {
10331066
if (yExtent < 0) {
10341067
throw new IllegalArgumentException();
@@ -1037,6 +1070,11 @@ public void setYExtent(float yExtent) {
10371070
this.yExtent = yExtent;
10381071
}
10391072

1073+
/**
1074+
* Alter the Z-axis distance between the center and the boundary.
1075+
*
1076+
* @param zExtent the desired distance (&ge;0)
1077+
*/
10401078
public void setZExtent(float zExtent) {
10411079
if (zExtent < 0) {
10421080
throw new IllegalArgumentException();
@@ -1045,6 +1083,12 @@ public void setZExtent(float zExtent) {
10451083
this.zExtent = zExtent;
10461084
}
10471085

1086+
/**
1087+
* Determine the minimum coordinate value for each axis.
1088+
*
1089+
* @param store storage for the result (modified if not null)
1090+
* @return either storeResult or a new vector
1091+
*/
10481092
public Vector3f getMin(Vector3f store) {
10491093
if (store == null) {
10501094
store = new Vector3f();
@@ -1053,6 +1097,12 @@ public Vector3f getMin(Vector3f store) {
10531097
return store;
10541098
}
10551099

1100+
/**
1101+
* Determine the maximum coordinate value for each axis.
1102+
*
1103+
* @param store storage for the result (modified if not null)
1104+
* @return either storeResult or a new vector
1105+
*/
10561106
public Vector3f getMax(Vector3f store) {
10571107
if (store == null) {
10581108
store = new Vector3f();
@@ -1061,6 +1111,14 @@ public Vector3f getMax(Vector3f store) {
10611111
return store;
10621112
}
10631113

1114+
/**
1115+
* Reconfigure with the specified extremes.
1116+
*
1117+
* @param min the desired minimum coordinate value for each axis (not null,
1118+
* not altered)
1119+
* @param max the desired maximum coordinate value for each axis (not null,
1120+
* not altered)
1121+
*/
10641122
public void setMinMax(Vector3f min, Vector3f max) {
10651123
this.center.set(max).addLocal(min).multLocal(0.5f);
10661124
xExtent = FastMath.abs(max.x - center.x);
@@ -1090,4 +1148,4 @@ public void read(JmeImporter e) throws IOException {
10901148
public float getVolume() {
10911149
return (8 * xExtent * yExtent * zExtent);
10921150
}
1093-
}
1151+
}

jme3-core/src/main/java/com/jme3/system/JmeSystem.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
import java.util.logging.Level;
4444
import java.util.logging.Logger;
4545

46+
/**
47+
* Utility class to access platform-dependant features.
48+
*/
4649
public class JmeSystem {
4750

4851
private static final Logger logger = Logger.getLogger(JmeSystem.class.getName());
@@ -155,6 +158,12 @@ public static boolean showSettingsDialog(AppSettings sourceSettings, final boole
155158
return systemDelegate.showSettingsDialog(sourceSettings, loadFromRegistry);
156159
}
157160

161+
/**
162+
* Determine which Platform (operating system and architecture) the
163+
* application is running on.
164+
*
165+
* @return an enum value (not null)
166+
*/
158167
public static Platform getPlatform() {
159168
checkDelegate();
160169
return systemDelegate.getPlatform();

jme3-core/src/main/java/com/jme3/system/Platform.java

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
*/
3232
package com.jme3.system;
3333

34+
/**
35+
* Enumerate known operating system/architecture pairs.
36+
*/
3437
public enum Platform {
3538

3639
/**
@@ -122,9 +125,15 @@ public enum Platform {
122125
* Android x86
123126
*/
124127
Android_X86,
125-
128+
129+
/**
130+
* iOS on x86
131+
*/
126132
iOS_X86,
127-
133+
134+
/**
135+
* iOS on ARM
136+
*/
128137
iOS_ARM,
129138

130139
/**
@@ -133,7 +142,12 @@ public enum Platform {
133142
Android_Other;
134143

135144
private final boolean is64bit;
136-
145+
146+
/**
147+
* Test for a 64-bit address space.
148+
*
149+
* @return true if 64 bits, otherwise false
150+
*/
137151
public boolean is64Bit() {
138152
return is64bit;
139153
}

jme3-core/src/main/java/com/jme3/util/BufferAllocator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
import java.nio.Buffer;
44
import java.nio.ByteBuffer;
55

6+
/**
7+
* Interface to create/destroy direct buffers.
8+
*/
69
public interface BufferAllocator {
710
/**
811
* De-allocate a direct buffer.

0 commit comments

Comments
 (0)