deal with some cast warnings, looking into class loading issues with modes

This commit is contained in:
benfry
2012-09-10 02:07:13 +00:00
parent 56a4d08912
commit 9c1aadc5b8
12 changed files with 226 additions and 215 deletions

View File

@@ -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();

View File

@@ -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) {

View File

@@ -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]);
}