Skip to content

Commit 7b5c8ba

Browse files
committed
Formatting more comments
1 parent 69700fb commit 7b5c8ba

File tree

18 files changed

+132
-132
lines changed

18 files changed

+132
-132
lines changed

core/src/processing/core/PApplet.java

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5530,9 +5530,9 @@ public void noiseSeed(long seed) {
55305530
* <br />
55315531
* If the file is not available or an error occurs, <b>null</b> will be
55325532
* returned and an error message will be printed to the console. The error
5533-
* message does not halt the program, however the null value may cause a
5533+
* message does not halt the program, however the <b>null</b> value may cause a
55345534
* NullPointerException if your code does not check whether the value returned
5535-
* is null.<br />
5535+
* is <b>null</b>.<br />
55365536
* <br />
55375537
* The <b>extension</b> parameter is used to determine the image type in cases
55385538
* where the image filename does not end with a proper extension. Specify the
@@ -5721,13 +5721,13 @@ public XML loadXML(String filename, String options) {
57215721

57225722
/**
57235723
* Takes a String, parses its contents, and returns an XML object. If the
5724-
* String does not contain XML data or cannot be parsed, a null value is
5724+
* String does not contain XML data or cannot be parsed, a <b>null</b> value is
57255725
* returned.<br />
57265726
* <br />
57275727
* <b>parseXML()</b> is most useful when pulling data dynamically, such as
57285728
* from third-party APIs. Normally, API results would be saved to a String,
57295729
* and then can be converted to a structured XML object using
5730-
* <b>parseXML()</b>. Be sure to check if null is returned before performing
5730+
* <b>parseXML()</b>. Be sure to check if <b>null</b> is returned before performing
57315731
* operations on the new XML object, in case the String content could not be
57325732
* parsed.<br />
57335733
* <br />
@@ -6185,9 +6185,9 @@ public boolean saveTable(Table table, String filename, String options) {
61856185
* <br />
61866186
* If the file is not available or an error occurs, <b>null</b> will be
61876187
* returned and an error message will be printed to the console. The error
6188-
* message does not halt the program, however the null value may cause a
6188+
* message does not halt the program, however the <b>null</b> value may cause a
61896189
* NullPointerException if your code does not check whether the value returned
6190-
* is null.<br />
6190+
* is <b>null</b>.<br />
61916191
* <br />
61926192
* Use <b>createFont()</b> (instead of <b>loadFont()</b>) to enable vector
61936193
* data to be used with the default renderer setting. This can be helpful when
@@ -6318,7 +6318,7 @@ private Frame selectFrame() {
63186318
/**
63196319
* Open a platform-specific file chooser dialog to select a file for input.
63206320
* After the selection is made, the selected File will be passed to the
6321-
* 'callback' function. If the dialog is closed or canceled, null will be sent
6321+
* 'callback' function. If the dialog is closed or canceled, <b>null</b> will be sent
63226322
* to the function, so that the program is not waiting for additional input.
63236323
* The callback is necessary because of how threading works.
63246324
*
@@ -6384,7 +6384,7 @@ static public void selectInput(String prompt, String callbackMethod,
63846384
/**
63856385
* Opens a platform-specific file chooser dialog to select a file for output.
63866386
* After the selection is made, the selected File will be passed to the
6387-
* 'callback' function. If the dialog is closed or canceled, null will be sent
6387+
* 'callback' function. If the dialog is closed or canceled, <b>null</b> will be sent
63886388
* to the function, so that the program is not waiting for additional input.
63896389
* The callback is necessary because of how threading works.
63906390
*
@@ -6912,7 +6912,7 @@ static public PrintWriter createWriter(OutputStream output) {
69126912
* - The full path to a file to be opened locally (when running as an
69136913
* application)<br />
69146914
* <br />
6915-
* If the requested item doesn't exist, null is returned. If not online,
6915+
* If the requested item doesn't exist, <b>null</b> is returned. If not online,
69166916
* this will also check to see if the user is asking for a file whose name
69176917
* isn't properly capitalized. If capitalization is different, an error
69186918
* will be printed to the console. This helps prevent issues that appear
@@ -7183,9 +7183,9 @@ static public InputStream createInput(File file) {
71837183
* <br />
71847184
* If the file is not available or an error occurs, <b>null</b> will be
71857185
* returned and an error message will be printed to the console. The error
7186-
* message does not halt the program, however the null value may cause a
7186+
* message does not halt the program, however the <b>null</b> value may cause a
71877187
* NullPointerException if your code does not check whether the value returned
7188-
* is null.<br />
7188+
* is <b>null</b>.<br />
71897189
*
71907190
* @webref input:files
71917191
* @webBrief Reads the contents of a file or url and places it in a byte
@@ -7401,9 +7401,9 @@ static public String[] loadStrings(File file) {
74017401
* <br />
74027402
* If the file is not available or an error occurs, <b>null</b> will be
74037403
* returned and an error message will be printed to the console. The error
7404-
* message does not halt the program, however the null value may cause a
7404+
* message does not halt the program, however the <b>null</b> value may cause a
74057405
* NullPointerException if your code does not check whether the value returned
7406-
* is null.<br />
7406+
* is <b>null</b>.<br />
74077407
* <br />
74087408
* Starting with Processing release 0134, all files loaded and saved by the
74097409
* Processing API use UTF-8 encoding. In previous releases, the default
@@ -9149,12 +9149,12 @@ protected boolean removeEldestEntry(Map.Entry<String, Pattern> eldest) {
91499149
*
91509150
* This function is used to apply a regular expression to a piece of text, and
91519151
* return matching groups (elements found inside parentheses) as a String
9152-
* array. If there are no matches, a null value will be returned. If no groups
9152+
* array. If there are no matches, a <b>null</b> value will be returned. If no groups
91539153
* are specified in the regular expression, but the sequence matches, an array
91549154
* of length 1 (with the matched text as the first element of the array) will
91559155
* be returned.<br />
91569156
* <br />
9157-
* To use the function, first check to see if the result is null. If the
9157+
* To use the function, first check to see if the result is <b>null</b>. If the
91589158
* result is null, then the sequence did not match at all. If the sequence did
91599159
* match, an array is returned.<br />
91609160
* <br />
@@ -9173,7 +9173,7 @@ protected boolean removeEldestEntry(Map.Entry<String, Pattern> eldest) {
91739173
* @webref data:string_functions
91749174
* @webBrief The match() function is used to apply a regular expression to a
91759175
* piece of text, and return matching groups (elements found inside
9176-
* parentheses) as a String array. No match will return null.
9176+
* parentheses) as a <b>String</b> array. No match will return <b>null</b>.
91779177
* @param str
91789178
* the String to be searched
91799179
* @param regexp
@@ -9203,12 +9203,12 @@ static public String[] match(String str, String regexp) {
92039203
*
92049204
* This function is used to apply a regular expression to a piece of text, and
92059205
* return a list of matching groups (elements found inside parentheses) as a
9206-
* two-dimensional String array. If there are no matches, a null value will be
9206+
* two-dimensional String array. If there are no matches, a <b>null</b> value will be
92079207
* returned. If no groups are specified in the regular expression, but the
92089208
* sequence matches, a two dimensional array is still returned, but the second
92099209
* dimension is only of length one.<br />
92109210
* <br />
9211-
* To use the function, first check to see if the result is null. If the
9211+
* To use the function, first check to see if the result is <b>null</b>. If the
92129212
* result is null, then the sequence did not match at all. If the sequence did
92139213
* match, a 2D array is returned.<br />
92149214
* <br />
@@ -11524,9 +11524,9 @@ public void endShape(int mode) {
1152411524
* <br />
1152511525
* If the file is not available or an error occurs, <b>null</b> will
1152611526
* be returned and an error message will be printed to the console.
11527-
* The error message does not halt the program, however the null value
11527+
* The error message does not halt the program, however the <b>null</b> value
1152811528
* may cause a NullPointerException if your code does not check whether
11529-
* the value returned is null.<br />
11529+
* the value returned is <b>null</b>.<br />
1153011530
*
1153111531
* @webref shape
1153211532
* @webBrief Loads geometry into a variable of type <b>PShape</b>.
@@ -11615,7 +11615,7 @@ public PShape createShape(int kind, float... p) {
1161511615
* be returned and an error message will be printed to the console.
1161611616
* The error message does not halt the program, however the null
1161711617
* value may cause a NullPointerException if your code does not check
11618-
* whether the value returned is null.<br />
11618+
* whether the value returned is <b>null</b>.<br />
1161911619
*
1162011620
*
1162111621
* @webref rendering:shaders

core/src/processing/data/FloatDict.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010

1111
/**
12-
* A simple class to use a String as a lookup for an float value. String "keys"
12+
* A simple class to use a <b>String</b> as a lookup for a float value. String "keys"
1313
* are associated with floating-point values.
1414
*
1515
* @webref data:composite
16-
* @webBrief A simple table class to use a String as a lookup for an float
16+
* @webBrief A simple table class to use a <b>String</b> as a lookup for a float
1717
* value.
1818
* @see IntDict
1919
* @see StringDict
@@ -415,7 +415,7 @@ public boolean hasKey(String key) {
415415

416416

417417
/**
418-
* Add to a value. If the key does not exist, an new pair is initialized with
418+
* Add to a value. If the key does not exist, a new pair is initialized with
419419
* the value supplied.
420420
*
421421
* @webref floatdict:method

core/src/processing/data/FloatList.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
/**
1313
* Helper class for a list of floats. Lists are designed to have some of the
14-
* features of ArrayLists, but to maintain the simplicity and efficiency of
14+
* features of <b>ArrayLists</b>, but to maintain the simplicity and efficiency of
1515
* working with arrays.
1616
*
17-
* Functions like sort() and shuffle() always act on the list itself. To get
18-
* a sorted copy, use list.copy().sort().
17+
* Functions like <b>sort()</b> and <b>shuffle()</b> always act on the list itself. To get
18+
* a sorted copy, use <b>list.copy().sort()</b>.
1919
*
2020
* @webref data:composite
2121
* @webBrief Helper class for a list of floats.

core/src/processing/data/IntDict.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010

1111
/**
12-
* A simple class to use a String as a lookup for an int value. String "keys" are
12+
* A simple class to use a <b>String</b> as a lookup for an int value. String "keys" are
1313
* associated with integer values.
1414
*
1515
* @webref data:composite
16-
* @webBrief A simple class to use a String as a lookup for an int value.
16+
* @webBrief A simple class to use a <b>String</b> as a lookup for an int value.
1717
* @see FloatDict
1818
* @see StringDict
1919
*/

core/src/processing/data/IntList.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616

1717
/**
1818
* Helper class for a list of ints. Lists are designed to have some of the
19-
* features of ArrayLists, but to maintain the simplicity and efficiency of
19+
* features of <b>ArrayLists</b>, but to maintain the simplicity and efficiency of
2020
* working with arrays.
2121
*
22-
* Functions like sort() and shuffle() always act on the list itself. To get
23-
* a sorted copy, use list.copy().sort().
22+
* Functions like <b>sort()</b> and <b>shuffle()</b> always act on the list itself. To get
23+
* a sorted copy, use <b>list.copy().sort()</b>.
2424
*
2525
* @webref data:composite
2626
* @webBrief Helper class for a list of ints.

core/src/processing/data/JSONArray.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public Object get(int index) {
279279

280280

281281
/**
282-
* Gets the String value associated with the specified index.
282+
* Gets the <b>String</b> value associated with the specified index.
283283
*
284284
* @webref jsonarray:method
285285
* @webBrief Gets the String value associated with an index
@@ -562,11 +562,11 @@ public JSONObject getJSONObject(int index, JSONObject defaultValue) {
562562

563563

564564
/**
565-
* Returns the entire <b>JSONArray</b> as an array of Strings.
566-
* (All values in the array must be of the String type.)
565+
* Returns the entire <b>JSONArray</b> as an array of <b>Strings</b>.
566+
* (All values in the array must be of the <b>String</b> type.)
567567
*
568568
* @webref jsonarray:method
569-
* @webBrief Returns the entire <b>JSONArray</b> as an array of Strings
569+
* @webBrief Returns the entire <b>JSONArray</b> as an array of <b>Strings</b>
570570
* @see JSONArray#getIntArray()
571571
*/
572572
public String[] getStringArray() {
@@ -579,11 +579,11 @@ public String[] getStringArray() {
579579

580580

581581
/**
582-
* Returns the entire <b>JSONArray</b> as an array of ints.
582+
* Returns the entire <b>JSONArray</b> as an array of <b>ints</b>.
583583
* (All values in the array must be of the int type.)
584584
*
585585
* @webref jsonarray:method
586-
* @webBrief Returns the entire <b>JSONArray</b> as an array of ints
586+
* @webBrief Returns the entire <b>JSONArray</b> as an array of <b>ints</b>
587587
* @see JSONArray#getStringArray()
588588
*/
589589
public int[] getIntArray() {
@@ -702,8 +702,8 @@ public boolean[] getBooleanArray() {
702702

703703
/**
704704
* Appends a new value to the <b>JSONArray</b>, increasing the array's length
705-
* by one. New values may be of the following types: int, float, String,
706-
* boolean, <b>JSONObject</b>, or <b>JSONArray</b>.
705+
* by one. New values may be of the following types: <b>int</b>, <b>float</b>, <b>String</b>,
706+
* <b>boolean</b>, <b>JSONObject</b>, or <b>JSONArray</b>.
707707
*
708708
* @webref jsonarray:method
709709
* @webBrief Appends a value, increasing the array's length by one
@@ -1080,7 +1080,7 @@ public boolean isNull(int index) {
10801080

10811081
/**
10821082
* Removes the element from a <b>JSONArray</b> in the specified index position.
1083-
* Returns either the value associated with the given index, or null, if there
1083+
* Returns either the value associated with the given index, or <b>null</b>, if there
10841084
* is no value.
10851085
*
10861086
* @webref jsonarray:method

core/src/processing/data/JSONObject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ of this software and associated documentation files (the "Software"), to deal
5252

5353
/**
5454
* A <b>JSONObject</b> stores JSON data with multiple name/value pairs. Values
55-
* can be numeric, Strings, booleans, other <b>JSONObject</b>s or
55+
* can be numeric, <b>Strings</b>, <b>booleans</b>, other <b>JSONObject</b>s or
5656
* <b>JSONArray</b>s, or null. <b>JSONObject</b> and <b>JSONArray</b> objects
5757
* are quite similar and share most of the same methods; the primary difference
5858
* is that the latter stores an array of JSON objects, while the former
@@ -567,7 +567,7 @@ public Object get(String key) {
567567

568568

569569
/**
570-
* Gets the String value associated with the specified key.
570+
* Gets the <b>String</b> value associated with the specified key.
571571
*
572572
* @webref jsonobject:method
573573
* @webBrief Gets the String value associated with the specified key

core/src/processing/data/LongList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ public void reverse() {
710710

711711
/**
712712
* Randomize the order of the list elements. Note that this does not
713-
* obey the randomSeed() function in PApplet.
713+
* obey the <b>randomSeed()</b> function in PApplet.
714714
*
715715
* @webref intlist:method
716716
* @webBrief Randomize the order of the list elements

core/src/processing/data/StringDict.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010

1111
/**
12-
* A simple class to use a String as a lookup for an String value. String "keys"
13-
* are associated with String values.
12+
* A simple class to use a <b>String</b> as a lookup for a <b>String</b> value. String "keys"
13+
* are associated with <b>String</b> values.
1414
*
1515
* @webref data:composite
1616
* @webBrief A simple class to use a String as a lookup for an String value

core/src/processing/data/StringList.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
import processing.core.PApplet;
1010

1111
/**
12-
* Helper class for a list of Strings. Lists are designed to have some of the
13-
* features of ArrayLists, but to maintain the simplicity and efficiency of
12+
* Helper class for a list of <b>Strings</b>. Lists are designed to have some of the
13+
* features of <b>ArrayLists</b>, but to maintain the simplicity and efficiency of
1414
* working with arrays.
1515
*
16-
* Functions like sort() and shuffle() always act on the list itself. To get
17-
* a sorted copy, use list.copy().sort().
16+
* Functions like <b>sort()</b> and <b>shuffle()</b> always act on the list itself. To get
17+
* a sorted copy, use <b>list.copy().sort()</b>.
1818
*
1919
* @webref data:composite
2020
* @webBrief Helper class for a list of Strings.
@@ -149,7 +149,7 @@ public String get(int index) {
149149
/**
150150
* Set the entry at a particular index. If the index is past the length of
151151
* the list, it'll expand the list to accommodate, and fill the intermediate
152-
* entries with "null".
152+
* entries with <b>null</b>.
153153
*
154154
* @webref stringlist:method
155155
* @webBrief Set an entry at a particular index

0 commit comments

Comments
 (0)