This commit is contained in:
Juan Miguel Boyero Corral 2011-07-14 23:54:51 +02:00
parent f62a8b9ed3
commit b7a938c2ef
19 changed files with 40 additions and 26 deletions

View File

@ -1360,7 +1360,7 @@ public class Base64
@Override @Override
public Class<?> resolveClass(java.io.ObjectStreamClass streamClass) public Class<?> resolveClass(java.io.ObjectStreamClass streamClass)
throws java.io.IOException, ClassNotFoundException { throws java.io.IOException, ClassNotFoundException {
Class c = Class.forName(streamClass.getName(), false, loader); Class<?> c = Class.forName(streamClass.getName(), false, loader);
if( c == null ){ if( c == null ){
return super.resolveClass(streamClass); return super.resolveClass(streamClass);
} else { } else {

View File

@ -55,6 +55,7 @@ public class ImageExpandableListAdapter extends SimpleExpandableListAdapter {
/* (non-Javadoc) /* (non-Javadoc)
* @see android.widget.SimpleExpandableListAdapter#getGroupView(int, boolean, android.view.View, android.view.ViewGroup) * @see android.widget.SimpleExpandableListAdapter#getGroupView(int, boolean, android.view.View, android.view.ViewGroup)
*/ */
@SuppressWarnings("unchecked")
@Override @Override
public View getGroupView(int groupPosition, boolean isExpanded, public View getGroupView(int groupPosition, boolean isExpanded,
View convertView, ViewGroup parent) { View convertView, ViewGroup parent) {
@ -68,6 +69,7 @@ public class ImageExpandableListAdapter extends SimpleExpandableListAdapter {
return v; return v;
} }
@SuppressWarnings("unchecked")
@Override @Override
public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) { public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) {
final View v = super.getChildView(groupPosition, childPosition, isLastChild, convertView, parent); final View v = super.getChildView(groupPosition, childPosition, isLastChild, convertView, parent);

View File

@ -166,6 +166,7 @@ public class SWADMain extends ExpandableListActivity {
int groupPosition, int childPosition, long id) { int groupPosition, int childPosition, long id) {
// Get the item that was clicked // Get the item that was clicked
Object o = this.getExpandableListAdapter().getChild(groupPosition, childPosition); Object o = this.getExpandableListAdapter().getChild(groupPosition, childPosition);
@SuppressWarnings("unchecked")
String keyword = (String) ((Map<String,Object>)o).get(NAME); String keyword = (String) ((Map<String,Object>)o).get(NAME);
Intent activity; Intent activity;

View File

@ -33,6 +33,7 @@ public class Course extends Model {
private String name; private String name;
private static PropertyInfo PI_id = new PropertyInfo(); private static PropertyInfo PI_id = new PropertyInfo();
private static PropertyInfo PI_name = new PropertyInfo(); private static PropertyInfo PI_name = new PropertyInfo();
@SuppressWarnings("unused")
private static PropertyInfo[] PI_PROP_ARRAY = private static PropertyInfo[] PI_PROP_ARRAY =
{ {
PI_id, PI_id,
@ -108,7 +109,7 @@ public class Course extends Model {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.ksoap2.serialization.KvmSerializable#getPropertyInfo(int, java.util.Hashtable, org.ksoap2.serialization.PropertyInfo) * @see org.ksoap2.serialization.KvmSerializable#getPropertyInfo(int, java.util.Hashtable, org.ksoap2.serialization.PropertyInfo)
*/ */
public void getPropertyInfo(int param, Hashtable arg1, PropertyInfo propertyInfo) { public void getPropertyInfo(int param, @SuppressWarnings("rawtypes") Hashtable arg1, PropertyInfo propertyInfo) {
switch(param){ switch(param){
case 0: case 0:
propertyInfo.type = PropertyInfo.LONG_CLASS; propertyInfo.type = PropertyInfo.LONG_CLASS;

View File

@ -89,6 +89,7 @@ public class DataBaseHelper {
* @param ent Cursor to the table rows * @param ent Cursor to the table rows
* @return A Model's subclass object * @return A Model's subclass object
*/ */
@SuppressWarnings("rawtypes")
private Model createObjectByTable(String table, Entity ent) { private Model createObjectByTable(String table, Entity ent) {
Model o = null; Model o = null;
Pair<String, String> params; Pair<String, String> params;
@ -552,7 +553,7 @@ public class DataBaseHelper {
* Removes a PairTable from database * Removes a PairTable from database
* @param p PairTable to be removed * @param p PairTable to be removed
*/ */
public void removePairTable(PairTable p) public void removePairTable(@SuppressWarnings("rawtypes") PairTable p)
{ {
String table = p.getTable(); String table = p.getTable();
Integer first = (Integer) p.getFirst(); Integer first = (Integer) p.getFirst();

View File

@ -73,6 +73,7 @@ public class Notification extends Model {
private static PropertyInfo PI_summary = new PropertyInfo(); private static PropertyInfo PI_summary = new PropertyInfo();
private static PropertyInfo PI_status = new PropertyInfo(); private static PropertyInfo PI_status = new PropertyInfo();
private static PropertyInfo PI_content = new PropertyInfo(); private static PropertyInfo PI_content = new PropertyInfo();
@SuppressWarnings("unused")
private static PropertyInfo[] PI_PROP_ARRAY = private static PropertyInfo[] PI_PROP_ARRAY =
{ {
PI_id, PI_id,
@ -326,7 +327,7 @@ public class Notification extends Model {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.ksoap2.serialization.KvmSerializable#getPropertyInfo(int, java.util.Hashtable, org.ksoap2.serialization.PropertyInfo) * @see org.ksoap2.serialization.KvmSerializable#getPropertyInfo(int, java.util.Hashtable, org.ksoap2.serialization.PropertyInfo)
*/ */
public void getPropertyInfo(int param, Hashtable arg1, PropertyInfo propertyInfo) { public void getPropertyInfo(int param, @SuppressWarnings("rawtypes") Hashtable arg1, PropertyInfo propertyInfo) {
switch(param){ switch(param){
case 0: case 0:
propertyInfo.type = PropertyInfo.LONG_CLASS; propertyInfo.type = PropertyInfo.LONG_CLASS;

View File

@ -134,7 +134,7 @@ public class PairTable<FIRST, SECOND> extends Model {
return 0; return 0;
} }
public void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) { public void getPropertyInfo(int arg0, @SuppressWarnings("rawtypes") Hashtable arg1, PropertyInfo arg2) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
} }

View File

@ -74,6 +74,7 @@ public class Test extends Model {
private static PropertyInfo PI_def = new PropertyInfo(); private static PropertyInfo PI_def = new PropertyInfo();
private static PropertyInfo PI_max = new PropertyInfo(); private static PropertyInfo PI_max = new PropertyInfo();
private static PropertyInfo PI_feedback = new PropertyInfo(); private static PropertyInfo PI_feedback = new PropertyInfo();
@SuppressWarnings("unused")
private static PropertyInfo[] PI_PROP_ARRAY = private static PropertyInfo[] PI_PROP_ARRAY =
{ {
PI_min, PI_min,
@ -532,7 +533,7 @@ public class Test extends Model {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.ksoap2.serialization.KvmSerializable#getPropertyInfo(int, java.util.Hashtable, org.ksoap2.serialization.PropertyInfo) * @see org.ksoap2.serialization.KvmSerializable#getPropertyInfo(int, java.util.Hashtable, org.ksoap2.serialization.PropertyInfo)
*/ */
public void getPropertyInfo(int param, Hashtable arg1, PropertyInfo propertyInfo) { public void getPropertyInfo(int param, @SuppressWarnings("rawtypes") Hashtable arg1, PropertyInfo propertyInfo) {
switch(param){ switch(param){
case 0: case 0:
propertyInfo.type = PropertyInfo.INTEGER_CLASS; propertyInfo.type = PropertyInfo.INTEGER_CLASS;

View File

@ -56,6 +56,7 @@ public class TestAnswer extends Model {
private static PropertyInfo PI_correctAnswered = new PropertyInfo(); private static PropertyInfo PI_correctAnswered = new PropertyInfo();
private static PropertyInfo PI_answer = new PropertyInfo(); private static PropertyInfo PI_answer = new PropertyInfo();
private static PropertyInfo PI_ansInd = new PropertyInfo(); private static PropertyInfo PI_ansInd = new PropertyInfo();
@SuppressWarnings("unused")
private static PropertyInfo[] PI_PROP_ARRAY = private static PropertyInfo[] PI_PROP_ARRAY =
{ {
PI_id, PI_id,
@ -257,7 +258,7 @@ public class TestAnswer extends Model {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.ksoap2.serialization.KvmSerializable#getPropertyInfo(int, java.util.Hashtable, org.ksoap2.serialization.PropertyInfo) * @see org.ksoap2.serialization.KvmSerializable#getPropertyInfo(int, java.util.Hashtable, org.ksoap2.serialization.PropertyInfo)
*/ */
public void getPropertyInfo(int param, Hashtable arg1, PropertyInfo propertyInfo) { public void getPropertyInfo(int param, @SuppressWarnings("rawtypes") Hashtable arg1, PropertyInfo propertyInfo) {
switch(param){ switch(param){
case 0: case 0:
propertyInfo.type = PropertyInfo.LONG_CLASS; propertyInfo.type = PropertyInfo.LONG_CLASS;

View File

@ -58,6 +58,7 @@ public class TestQuestion extends Model {
private static PropertyInfo PI_editTime = new PropertyInfo(); private static PropertyInfo PI_editTime = new PropertyInfo();
private static PropertyInfo PI_ansType = new PropertyInfo(); private static PropertyInfo PI_ansType = new PropertyInfo();
private static PropertyInfo PI_shuffle = new PropertyInfo(); private static PropertyInfo PI_shuffle = new PropertyInfo();
@SuppressWarnings("unused")
private static PropertyInfo[] PI_PROP_ARRAY = private static PropertyInfo[] PI_PROP_ARRAY =
{ {
PI_id, PI_id,
@ -269,7 +270,7 @@ public class TestQuestion extends Model {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.ksoap2.serialization.KvmSerializable#getPropertyInfo(int, java.util.Hashtable, org.ksoap2.serialization.PropertyInfo) * @see org.ksoap2.serialization.KvmSerializable#getPropertyInfo(int, java.util.Hashtable, org.ksoap2.serialization.PropertyInfo)
*/ */
public void getPropertyInfo(int param, Hashtable arg1, PropertyInfo propertyInfo) { public void getPropertyInfo(int param, @SuppressWarnings("rawtypes") Hashtable arg1, PropertyInfo propertyInfo) {
switch(param){ switch(param){
case 0: case 0:
propertyInfo.type = PropertyInfo.LONG_CLASS; propertyInfo.type = PropertyInfo.LONG_CLASS;

View File

@ -42,6 +42,7 @@ public class TestTag extends Model {
private static PropertyInfo PI_id = new PropertyInfo(); private static PropertyInfo PI_id = new PropertyInfo();
private static PropertyInfo PI_tagText = new PropertyInfo(); private static PropertyInfo PI_tagText = new PropertyInfo();
private static PropertyInfo PI_tagInd = new PropertyInfo(); private static PropertyInfo PI_tagInd = new PropertyInfo();
@SuppressWarnings("unused")
private static PropertyInfo[] PI_PROP_ARRAY = private static PropertyInfo[] PI_PROP_ARRAY =
{ {
PI_id, PI_id,
@ -184,7 +185,7 @@ public class TestTag extends Model {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.ksoap2.serialization.KvmSerializable#getPropertyInfo(int, java.util.Hashtable, org.ksoap2.serialization.PropertyInfo) * @see org.ksoap2.serialization.KvmSerializable#getPropertyInfo(int, java.util.Hashtable, org.ksoap2.serialization.PropertyInfo)
*/ */
public void getPropertyInfo(int param, Hashtable arg1, PropertyInfo propertyInfo) { public void getPropertyInfo(int param, @SuppressWarnings("rawtypes") Hashtable arg1, PropertyInfo propertyInfo) {
switch(param){ switch(param){
case 0: case 0:
propertyInfo.type = PropertyInfo.LONG_CLASS; propertyInfo.type = PropertyInfo.LONG_CLASS;

View File

@ -69,6 +69,7 @@ public class User implements KvmSerializable {
private static PropertyInfo PI_userSurname2 = new PropertyInfo(); private static PropertyInfo PI_userSurname2 = new PropertyInfo();
private static PropertyInfo PI_userFirstName = new PropertyInfo(); private static PropertyInfo PI_userFirstName = new PropertyInfo();
private static PropertyInfo PI_userTypeName = new PropertyInfo(); private static PropertyInfo PI_userTypeName = new PropertyInfo();
@SuppressWarnings("unused")
private static PropertyInfo[] PI_PROP_ARRAY = private static PropertyInfo[] PI_PROP_ARRAY =
{ {
PI_userCode, PI_userCode,
@ -258,7 +259,7 @@ public class User implements KvmSerializable {
return 8; return 8;
} }
public void getPropertyInfo(int param, Hashtable arg1, PropertyInfo propertyInfo) { public void getPropertyInfo(int param, @SuppressWarnings("rawtypes") Hashtable arg1, PropertyInfo propertyInfo) {
switch(param){ switch(param){
case 0: case 0:
propertyInfo.type = PropertyInfo.STRING_CLASS; propertyInfo.type = PropertyInfo.STRING_CLASS;

View File

@ -117,6 +117,7 @@ public class Courses extends Module {
List<Model> coursesSWAD = new ArrayList<Model>(); List<Model> coursesSWAD = new ArrayList<Model>();
List<Model> newCourses = new ArrayList<Model>(); List<Model> newCourses = new ArrayList<Model>();
List<Model> obsoleteCourses = new ArrayList<Model>(); List<Model> obsoleteCourses = new ArrayList<Model>();
@SuppressWarnings("rawtypes")
Vector res = (Vector) result; Vector res = (Vector) result;
SoapObject soap = (SoapObject) res.get(1); SoapObject soap = (SoapObject) res.get(1);
int csSize = soap.getPropertyCount(); int csSize = soap.getPropertyCount();

View File

@ -266,6 +266,7 @@ public abstract class Module extends Activity {
/* (non-Javadoc) /* (non-Javadoc)
* @see android.app.Activity#onCreate() * @see android.app.Activity#onCreate()
*/ */
@SuppressWarnings("static-access")
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
//Check if debug mode is enabled //Check if debug mode is enabled
@ -406,7 +407,7 @@ public abstract class Module extends Activity {
* @throws IllegalAccessException * @throws IllegalAccessException
* @throws XmlPullParserException * @throws XmlPullParserException
*/ */
protected void sendRequest(Class cl, boolean simple) protected void sendRequest(@SuppressWarnings("rawtypes") Class cl, boolean simple)
throws IOException, SoapFault, IllegalAccessException, InstantiationException, XmlPullParserException { throws IOException, SoapFault, IllegalAccessException, InstantiationException, XmlPullParserException {
/** /**

View File

@ -193,6 +193,7 @@ public class Notifications extends Module {
if (result != null) { if (result != null) {
//Stores notifications data returned by webservice response //Stores notifications data returned by webservice response
@SuppressWarnings("rawtypes")
Vector res = (Vector) result; Vector res = (Vector) result;
SoapObject soap = (SoapObject) res.get(1); SoapObject soap = (SoapObject) res.get(1);
int csSize = soap.getPropertyCount(); int csSize = soap.getPropertyCount();

View File

@ -25,7 +25,6 @@ import es.ugr.swad.swadroid.model.TestAnswer;
import android.content.Context; import android.content.Context;
import android.graphics.Color; import android.graphics.Color;
import android.text.Html; import android.text.Html;
import android.util.Log;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.View.OnClickListener; import android.view.View.OnClickListener;

View File

@ -195,6 +195,7 @@ public class TestsConfigDownload extends Module {
if (result != null) { if (result != null) {
//Stores tests data returned by webservice response //Stores tests data returned by webservice response
@SuppressWarnings("rawtypes")
Vector res = (Vector) result; Vector res = (Vector) result;
Integer pluggable = new Integer(res.get(0).toString()); Integer pluggable = new Integer(res.get(0).toString());

View File

@ -97,6 +97,7 @@ public class TestsQuestionsDownload extends Module {
if (result != null) { if (result != null) {
//Stores tests data returned by webservice response //Stores tests data returned by webservice response
@SuppressWarnings("rawtypes")
Vector res = (Vector) result; Vector res = (Vector) result;
SoapObject tagsListObject = (SoapObject)res.get(0); SoapObject tagsListObject = (SoapObject)res.get(0);

View File

@ -23,7 +23,6 @@ import android.text.InputType;
import android.text.Spanned; import android.text.Spanned;
import android.text.method.NumberKeyListener; import android.text.method.NumberKeyListener;
import android.util.AttributeSet; import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.View.OnClickListener; import android.view.View.OnClickListener;
@ -46,6 +45,7 @@ import es.ugr.swad.swadroid.R;
public class NumberPicker extends LinearLayout implements OnClickListener, public class NumberPicker extends LinearLayout implements OnClickListener,
OnFocusChangeListener, OnLongClickListener { OnFocusChangeListener, OnLongClickListener {
@SuppressWarnings("unused")
private static final String TAG = "NumberPicker"; private static final String TAG = "NumberPicker";
private static final int DEFAULT_MAX = 200; private static final int DEFAULT_MAX = 200;
private static final int DEFAULT_MIN = 0; private static final int DEFAULT_MIN = 0;
@ -113,7 +113,6 @@ public class NumberPicker extends LinearLayout implements OnClickListener,
this(context, attrs, 0); this(context, attrs, 0);
} }
@SuppressWarnings({"UnusedDeclaration"})
public NumberPicker(Context context, AttributeSet attrs, int defStyle) { public NumberPicker(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs); super(context, attrs);
setOrientation(VERTICAL); setOrientation(VERTICAL);