fix warnings, cleanups
This commit is contained in:
@@ -16,7 +16,7 @@ public class GwtPaint implements Paint {
|
||||
float fontSize = 12;
|
||||
|
||||
private FontStyle fontStyle = FontStyle.NORMAL;
|
||||
private FontFamily fontFamily = FontFamily.DEFAULT;
|
||||
//private FontFamily fontFamily = FontFamily.DEFAULT;
|
||||
|
||||
//String font = "12px sans-serif";
|
||||
String font = "13px Helvetica";
|
||||
@@ -85,7 +85,7 @@ public class GwtPaint implements Paint {
|
||||
@Override
|
||||
public void setTypeface(FontFamily fontFamily, FontStyle fontStyle) {
|
||||
this.fontStyle = fontStyle;
|
||||
this.fontFamily = fontFamily;
|
||||
//this.fontFamily = fontFamily;
|
||||
buildFont();
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@ import java.nio.ShortBuffer;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.graphics.GL10;
|
||||
import com.badlogic.gdx.graphics.GL20;
|
||||
import com.badlogic.gdx.graphics.Pixmap;
|
||||
|
||||
@@ -2,7 +2,6 @@ package org.oscim.utils.async;
|
||||
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.utils.Disposable;
|
||||
import com.badlogic.gdx.utils.Timer;
|
||||
|
||||
/**
|
||||
* GWT emulation of AsynchExecutor, will call tasks immediately :D
|
||||
@@ -26,7 +25,7 @@ public class AsyncExecutor implements Disposable {
|
||||
* will be queued.
|
||||
* @param task the task to execute asynchronously
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
public <T> AsyncResult<T> submit(final AsyncTask<T> task) {
|
||||
|
||||
T result = null;
|
||||
@@ -37,6 +36,9 @@ public class AsyncExecutor implements Disposable {
|
||||
} catch(Throwable t) {
|
||||
error = true;
|
||||
}
|
||||
if (error)
|
||||
return null;
|
||||
|
||||
return new AsyncResult(result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user