| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -133,6 +133,9 @@ public void set(int index, float what) { | |||
| 133 | 133 | * @brief Remove an element from the specified index | |
| 134 | 134 | */ | |
| 135 | 135 | public float remove(int index) { | |
| 136 | + if (index < 0 || index >= count) { | ||
| 137 | + throw new ArrayIndexOutOfBoundsException(index); | ||
| 138 | + } | ||
| 136 | 139 | float entry = data[index]; | |
| 137 | 140 | // int[] outgoing = new int[count - 1]; | |
| 138 | 141 | // System.arraycopy(data, 0, outgoing, 0, index); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -138,6 +138,9 @@ public void set(int index, int what) { | |||
| 138 | 138 | * @brief Remove an element from the specified index | |
| 139 | 139 | */ | |
| 140 | 140 | public int remove(int index) { | |
| 141 | + if (index < 0 || index >= count) { | ||
| 142 | + throw new ArrayIndexOutOfBoundsException(index); | ||
| 143 | + } | ||
| 141 | 144 | int entry = data[index]; | |
| 142 | 145 | // int[] outgoing = new int[count - 1]; | |
| 143 | 146 | // System.arraycopy(data, 0, outgoing, 0, index); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -134,6 +134,9 @@ public void set(int index, String what) { | |||
| 134 | 134 | * @brief Remove an element from the specified index | |
| 135 | 135 | */ | |
| 136 | 136 | public String remove(int index) { | |
| 137 | + if (index < 0 || index >= count) { | ||
| 138 | + throw new ArrayIndexOutOfBoundsException(index); | ||
| 139 | + } | ||
| 137 | 140 | String entry = data[index]; | |
| 138 | 141 | // int[] outgoing = new int[count - 1]; | |
| 139 | 142 | // System.arraycopy(data, 0, outgoing, 0, index); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -52,15 +52,6 @@ A Multiple screen crash with OpenGL | |||
| 52 | 52 | A https://github.com/processing/processing/issues/1515 | |
| 53 | 53 | ||
| 54 | 54 | ||
| 55 | - _ data decision stuff | ||
| 56 | - _ key/valueIterator to get a version that can be removed in a loop | ||
| 57 | - _ in Table, added an Iterator function | ||
| 58 | - _ should keys() returns cropped internal array after all? | ||
| 59 | - _ right now it's making a copy (which is safer, so folks don't modify) | ||
| 60 | - _ but this means that we don't have a fast method for access | ||
| 61 | - _ methods for max, min, index of max/min entries? valueIndex? | ||
| 62 | - | ||
| 63 | - | ||
| 64 | 55 | high | |
| 65 | 56 | _ draw() called again before finishing on OS X (retina issue) | |
| 66 | 57 | _ https://github.com/processing/processing/issues/1709 | |
@@ -69,6 +60,7 @@ _ https://github.com/processing/processing/issues/1699 | |||
| 69 | 60 | _ Linux sometimes not responding correctly w/ the size() command | |
| 70 | 61 | _ https://github.com/processing/processing/issues/1672 | |
| 71 | 62 | ||
| 63 | + table | ||
| 72 | 64 | _ function that will convert awful CSV to TSV.. or something else? | |
| 73 | 65 | _ maybe to write binary instead? then read the binary file once it's ok? | |
| 74 | 66 | _ if loading from a File object | |
@@ -134,10 +126,12 @@ _ otherwise remove() would be the only one that dealt with indices | |||
| 134 | 126 | _ Dict will use remove(key), so using remove(index) as default | |
| 135 | 127 | _ and removeValue(value) is probably used less | |
| 136 | 128 | _ introduce remap() instead of map() (if not deprecate?) | |
| 137 | - | ||
| 138 | - andres | ||
| 139 | - _ shader syntax (Andres request) | ||
| 140 | - _ might also need a define inside the shader to control what type it is | ||
| 129 | + _ key/valueIterator to get a version that can be removed in a loop | ||
| 130 | + _ in Table, added an Iterator function | ||
| 131 | + _ should keys() returns cropped internal array after all? | ||
| 132 | + _ right now it's making a copy (which is safer, so folks don't modify) | ||
| 133 | + _ but this means that we don't have a fast method for access | ||
| 134 | + _ methods for max, min, index of max/min entries? valueIndex? | ||
| 141 | 135 | ||
| 142 | 136 | shape | |
| 143 | 137 | _ PShape should be cached as well | |
| Back | FazBrowse Home | New Git URL |
0 commit comments