mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fixes for more warnings
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
package processing.app;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.io.*;
|
||||
import java.net.*;
|
||||
import java.util.ArrayList;
|
||||
@@ -35,8 +34,6 @@ import javax.swing.*;
|
||||
import javax.swing.event.ChangeEvent;
|
||||
import javax.swing.event.ChangeListener;
|
||||
|
||||
import processing.app.LibraryListPanel.LibraryPanel;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -200,6 +197,7 @@ public class LibraryManager {
|
||||
byte[] b = new byte[256];
|
||||
int bytesDownloaded = 0, len;
|
||||
while ((len = in.read(b)) != -1) {
|
||||
@SuppressWarnings("unused")
|
||||
int progress = (int) (100.0 * bytesDownloaded / fileSize);
|
||||
// System.out.println("Downloaded " + progress + "%");
|
||||
out.write(b, 0, len);
|
||||
|
||||
@@ -297,14 +297,14 @@ outerloop:
|
||||
}
|
||||
}
|
||||
|
||||
String fname = (new String(buf, 0, index, i-index)).
|
||||
String fname = (new String(buf, index, i-index)).
|
||||
replace('/', File.separatorChar);
|
||||
if (fname.startsWith(File.separator))
|
||||
{
|
||||
fname = fname.substring(1);
|
||||
}
|
||||
|
||||
fname = java.net.URLDecoder.decode(fname);
|
||||
fname = java.net.URLDecoder.decode(fname, "UTF-8");
|
||||
|
||||
// TODO
|
||||
//implement a logger service that will receive messages from p.js?
|
||||
@@ -342,14 +342,14 @@ outerloop:
|
||||
|
||||
boolean printHeaders(File targ, PrintStream ps) throws IOException {
|
||||
boolean ret = false;
|
||||
int rCode = 0;
|
||||
// int rCode = 0;
|
||||
if (!targ.exists()) {
|
||||
rCode = HTTP_NOT_FOUND;
|
||||
// rCode = HTTP_NOT_FOUND;
|
||||
ps.print("HTTP/1.0 " + HTTP_NOT_FOUND + " not found");
|
||||
ps.write(EOL);
|
||||
ret = false;
|
||||
} else {
|
||||
rCode = HTTP_OK;
|
||||
// rCode = HTTP_OK;
|
||||
ps.print("HTTP/1.0 " + HTTP_OK+" OK");
|
||||
ps.write(EOL);
|
||||
ret = true;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
X incorporate RXTXcomm.jar and others from Dave
|
||||
X Serial.list() cannot find /dev/ttyACM0
|
||||
X http://code.google.com/p/processing/issues/detail?id=634
|
||||
X incorporate gsvideo and opengl2 as the default libraries for video and opengl
|
||||
|
||||
cleanup
|
||||
X how is autoformat doing? good now
|
||||
@@ -22,6 +23,9 @@ o prevent people from setting the font size too small in the editor
|
||||
o how do we figure out what "too small" is?
|
||||
X -> everyone thinks this is funny
|
||||
|
||||
_ Resize box on OS X is not present in Examples box
|
||||
_ http://code.google.com/p/processing/issues/detail?id=730
|
||||
|
||||
|
||||
pnode: look more closely at json and xml compatibility
|
||||
|
||||
|
||||
Reference in New Issue
Block a user