fix warnings, cleanups

This commit is contained in:
Hannes Janetzek
2013-09-17 22:43:53 +02:00
parent 1421a1f6b6
commit e5761ef601
10 changed files with 51 additions and 57 deletions

View File

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

View File

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

View File

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