Skip to content

Commit 07c6f52

Browse files
committed
additional type corrections
1 parent 2fc01ef commit 07c6f52

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

app/src/processing/app/Library.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,13 @@ static String[] listPlatformEntries(File libraryFolder, String folderName, Strin
256256
* @param importToLibraryTable mapping from package names to Library objects
257257
*/
258258
// public void addPackageList(HashMap<String,Library> importToLibraryTable) {
259-
public void addPackageList(Map<String, ArrayList<Library>> importToLibraryTable) {
259+
public void addPackageList(Map<String, List<Library>> importToLibraryTable) {
260260
// PApplet.println(packages);
261261
for (String pkg : packageList) {
262262
// pw.println(pkg + "\t" + libraryFolder.getAbsolutePath());
263263
// PApplet.println(pkg + "\t" + getName());
264264
// Library library = importToLibraryTable.get(pkg);
265-
ArrayList<Library> libraries = importToLibraryTable.get(pkg);
265+
List<Library> libraries = importToLibraryTable.get(pkg);
266266
if (libraries == null) {
267267
libraries = new ArrayList<Library>();
268268
importToLibraryTable.put(pkg, libraries);

app/src/processing/app/Mode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public abstract class Mode {
6262
// protected Tool formatter;
6363

6464
// maps imported packages to their library folder
65-
protected Map<String, ArrayList<Library>> importToLibraryTable;
65+
protected Map<String, List<Library>> importToLibraryTable;
6666

6767
// these menus are shared so that they needn't be rebuilt for all windows
6868
// each time a sketch is created, renamed, or moved.
@@ -318,7 +318,7 @@ public File getReferenceFolder() {
318318
public void rebuildLibraryList() {
319319
//new Exception("Rebuilding library list").printStackTrace(System.out);
320320
// reset the table mapping imports to libraries
321-
importToLibraryTable = new HashMap<String, ArrayList<Library>>();
321+
importToLibraryTable = new HashMap<String, List<Library>>();
322322

323323
Library core = getCoreLibrary();
324324
if (core != null) {

todo.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
0241 (3.0b3)
2+
X don't show breakpoints when debugger is off
3+
X https://github.com/processing/processing/issues/3093
4+
X no setting breakpoints when debugger is off
5+
X https://github.com/processing/processing/issues/3306
26
_ 'examples' shows as a folder in the sketchbook window
37

48
cleaning/earlier
@@ -38,10 +42,6 @@ _ fix red in sidebar, the squiggly line beneath code
3842
_ show hover text with 'debug'
3943
_ show number of updates available in the footer
4044
_ https://github.com/processing/processing/issues/3518
41-
X don't show breakpoints when debugger is off
42-
X https://github.com/processing/processing/issues/3093
43-
_ no setting breakpoints when debugger is off
44-
_ https://github.com/processing/processing/issues/3306
4545
_ make breakpoints more prominent
4646
_ https://github.com/processing/processing/issues/3307
4747
_ import suggestions box needs design review

0 commit comments

Comments
 (0)