mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 18:35:37 +01:00
deal with some cast warnings, looking into class loading issues with modes
This commit is contained in:
@@ -210,7 +210,7 @@ public class PdeKeyListener {
|
||||
}
|
||||
|
||||
|
||||
switch ((int) c) {
|
||||
switch (c) {
|
||||
|
||||
case 9: // TAB
|
||||
if ((event.getModifiers() & KeyEvent.SHIFT_MASK) != 0) {
|
||||
@@ -220,7 +220,7 @@ public class PdeKeyListener {
|
||||
|
||||
} else if (textarea.isSelectionActive()) {
|
||||
editor.handleIndent();
|
||||
|
||||
|
||||
} else if (Preferences.getBoolean("editor.tabs.expand")) {
|
||||
int tabSize = Preferences.getInteger("editor.tabs.size");
|
||||
textarea.setSelectedText(spaces(tabSize));
|
||||
@@ -412,8 +412,8 @@ public class PdeKeyListener {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public boolean keyTyped(KeyEvent event) {
|
||||
char c = event.getKeyChar();
|
||||
|
||||
|
||||
@@ -781,7 +781,7 @@ public class PdePreprocessor {
|
||||
}
|
||||
|
||||
protected int writeImportList(PrintWriter out, List<String> imports) {
|
||||
return writeImportList(out, (String[]) imports.toArray(new String[0]));
|
||||
return writeImportList(out, imports.toArray(new String[0]));
|
||||
}
|
||||
|
||||
protected int writeImportList(PrintWriter out, String[] imports) {
|
||||
|
||||
@@ -308,7 +308,7 @@ public class Runner implements MessageConsumer {
|
||||
// String outgoing[] = new String[params.size()];
|
||||
// params.toArray(outgoing);
|
||||
// return outgoing;
|
||||
return (String[]) params.toArray(new String[0]);
|
||||
return params.toArray(new String[0]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user