Revision: 3113
http://vexi.svn.sourceforge.net/vexi/?rev=3113&view=rev
Author: mkpg2
Date: 2008-09-24 16:29:53 +0000 (Wed, 24 Sep 2008)
Log Message:
-----------
Eliminating compiler warnings.
Modified Paths:
--------------
trunk/launch/org.vexi.launch/src/org/vexi/rocketlogic/ShoeHorn.java
trunk/launch/org.vexi.launch/src/org/vexi/shoehorn3/ShoeHorn.java
Modified: trunk/launch/org.vexi.launch/src/org/vexi/rocketlogic/ShoeHorn.java
===================================================================
--- trunk/launch/org.vexi.launch/src/org/vexi/rocketlogic/ShoeHorn.java
2008-09-24 16:29:39 UTC (rev 3112)
+++ trunk/launch/org.vexi.launch/src/org/vexi/rocketlogic/ShoeHorn.java
2008-09-24 16:29:53 UTC (rev 3113)
@@ -20,7 +20,7 @@
// Startup Phase
////////////////////////////////////////////////////////////////////
private String build = null;
- private String path = null;
+ //private String path = null;
private String coreurl = null;
private String core = null;
private boolean applog = false;
@@ -35,7 +35,7 @@
build = getParameter("build");
coreurl = getParameter("coreurl");
core = getParameter("core");
- path = getParameter("path");
+ //path = getParameter("path");
if (getParameter("log") != null) applog = true;
new Thread() { public void run() {
log("ShoeHorn thread spawned");
@@ -71,7 +71,7 @@
}
/** ask Java Plugin for privs */
- private static class Java12 {
+ /*private static class Java12 {
public static void run(final Object a) {
java.security.AccessController.doPrivileged(new
java.security.PrivilegedAction() {
public Object run() {
@@ -80,7 +80,7 @@
}
});
}
- }
+ }*/
// Implantation
////////////////////////////////////////////////////////////////////
@@ -358,7 +358,6 @@
/** Voodoo to extract the proxy settings from Sun's Java Plugin */
private String detectProxy() {
try {
- Vector ret = new Vector();
Class PluginProxyHandler =
Class.forName("sun.plugin.protocol.PluginProxyHandler");
Method getDefaultProxyHandler =
PluginProxyHandler.getMethod("getDefaultProxyHandler", new Class[] { });
@@ -389,7 +388,7 @@
}
// The Netscape JVM has a bug which causes waitFor() to lock up, so we
wait no more than 2000ms
- private void safeWaitFor(final Process p) {
+ /*private void safeWaitFor(final Process p) {
final Object o = new Object();
new Thread() {
public void run() {
@@ -402,7 +401,7 @@
try {
synchronized(o) { o.wait(2000); }
} catch (InterruptedException e) { }
- }
+ }*/
/** fetches a file from the distribution site, writing it to the
appropriate place */
private File fetch(String urlname, String filename) throws IOException {
@@ -427,8 +426,7 @@
uc.connect();
InputStream is = uc.getInputStream();
- final int contentLength = uc.getContentLength();
-
+
// display the progress indicator as we go
InputStream dis = new FilterInputStream(is) {
int total = 0;
Modified: trunk/launch/org.vexi.launch/src/org/vexi/shoehorn3/ShoeHorn.java
===================================================================
--- trunk/launch/org.vexi.launch/src/org/vexi/shoehorn3/ShoeHorn.java
2008-09-24 16:29:39 UTC (rev 3112)
+++ trunk/launch/org.vexi.launch/src/org/vexi/shoehorn3/ShoeHorn.java
2008-09-24 16:29:53 UTC (rev 3113)
@@ -17,7 +17,7 @@
// Startup Phase
////////////////////////////////////////////////////////////////////
private String build = null;
- private String path = null;
+ //private String path = null;
private String coreurl = null;
private String core = null;
private boolean applog = false;
@@ -32,7 +32,7 @@
build = getParameter("build");
coreurl = getParameter("coreurl");
core = getParameter("core");
- path = getParameter("path");
+ //path = getParameter("path");
if (getParameter("log") != null) applog = true;
new Thread() { public void run() {
log("ShoeHorn thread spawned");
@@ -68,7 +68,7 @@
}
/** ask Java Plugin for privs */
- private static class Java12 {
+ /*private static class Java12 {
public static void run(final Object a) {
java.security.AccessController.doPrivileged(new
java.security.PrivilegedAction() {
public Object run() {
@@ -77,7 +77,7 @@
}
});
}
- }
+ }*/
// Implantation
////////////////////////////////////////////////////////////////////
@@ -350,8 +350,6 @@
/** Voodoo to extract the proxy settings from Sun's Java Plugin */
private String detectProxy() {
try {
- Vector ret = new Vector();
-
Class PluginProxyHandler =
Class.forName("sun.plugin.protocol.PluginProxyHandler");
Method getDefaultProxyHandler =
PluginProxyHandler.getMethod("getDefaultProxyHandler", new Class[] { });
Object proxyHandler = getDefaultProxyHandler.invoke(null, new
Object[] { });
@@ -381,7 +379,7 @@
}
// The Netscape JVM has a bug which causes waitFor() to lock up, so we
wait no more than 2000ms
- private void safeWaitFor(final Process p) {
+ /*private void safeWaitFor(final Process p) {
final Object o = new Object();
new Thread() {
public void run() {
@@ -394,7 +392,7 @@
try {
synchronized(o) { o.wait(2000); }
} catch (InterruptedException e) { }
- }
+ }*/
/** fetches a file from the distribution site, writing it to the
appropriate place */
private File fetch(String urlname, String filename) throws IOException {
@@ -415,7 +413,6 @@
final URLConnection uc = u.openConnection();
InputStream is = uc.getInputStream();
- final int contentLength = uc.getContentLength();
FileOutputStream out = new FileOutputStream(target);
int c;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn