Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvik committed May 19, 2015
1 parent b120fe0 commit 7ea28e0
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/main/scala/com/sattvik/baitha/AlertDialogBuilder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import android.view.View
import android.widget.AdapterView.OnItemSelectedListener
import android.widget.ListAdapter
import com.sattvik.baitha.AlertDialogBuilder.{DialogueFunctor, BuilderFactory}
import scala.language.implicitConversions

/** Builds or shows an alert dialogue from the arguments passed in to the
* constructor. Too how to use the builder, refer to the documentation for
Expand Down
1 change: 1 addition & 0 deletions src/main/scala/com/sattvik/baitha/EnhancedIntent.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import java.io.Serializable
import java.util.ArrayList
import android.content.Intent
import android.os.{Parcelable, Bundle}
import scala.language.implicitConversions

import extra._

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package com.sattvik.baitha
import android.content.SharedPreferences
import android.content.SharedPreferences.OnSharedPreferenceChangeListener
import com.sattvik.baitha.EnhancedPreferences.EnhancedEditor
import scala.language.implicitConversions

/** Provides additional functionality to Android's SharedPreferences to make
* working with Android preferences easier and more fun.
Expand Down
1 change: 1 addition & 0 deletions src/main/scala/com/sattvik/baitha/EnhancedViews.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package com.sattvik.baitha
import android.view.View
import android.widget._
import com.sattvik.baitha.views._
import scala.language.implicitConversions

/** The EnhancedViews trait adds an implicit conversion that makes working with
* Views a bit easier.
Expand Down
6 changes: 3 additions & 3 deletions src/main/scala/com/sattvik/baitha/database/Query.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Query[A] private(

/** Returns a version of the query that retrieves the given columns. */
def withColumns(columns: Traversable[_]): Query[A] = {
val columnArray = Some(columns map {a: Any => a.toString} toArray)
val columnArray = Some(columns.map({a: Any => a.toString}).toArray)
new Query(source, columnArray, where, whereArgs, sort)
}

Expand All @@ -70,7 +70,7 @@ class Query[A] private(

/** Returns a version of the query that retrieves the given columns. */
def withArgs(args: Any*): Query[A] = {
val argArray = Some(args map {_.toString} toArray)
val argArray = Some(args.map({_.toString}).toArray)
new Query(source, columns, where, argArray, sort)
}

Expand All @@ -86,4 +86,4 @@ class Query[A] private(
object Query {
/** Creates a new query for the given source. */
def apply[A](source: A): Query[A] = new Query(source)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import android.content.ContentResolver
import android.database._
import android.net.Uri
import android.os.Bundle

import com.sattvik.baitha.SdkVersions
import scala.language.implicitConversions

import TypedCursorWrapper.HoneycombGetType
import TypedCursorWrapper.PreHoneycombGetType
Expand Down Expand Up @@ -196,6 +196,7 @@ class TypedCursorWrapper(protected[this] val cursor: Cursor) extends Cursor {
cursor.copyStringToBuffer(columnIndex, buffer)
}

@deprecated("Since requery() is deprecated, so too is this.", "0.1.1")
def deactivate() {cursor.deactivate()}

def getBlob(columnIndex: Int) = cursor.getBlob(columnIndex)
Expand Down Expand Up @@ -276,7 +277,7 @@ class TypedCursorWrapper(protected[this] val cursor: Cursor) extends Cursor {
@deprecated(
"Don't use this. Just request a new cursor, so you can do this " +
"asynchronously and update your list view once the new cursor comes " +
"back.")
"back.", "0.1.0")
def requery() = cursor.requery()

def respond(bundle: Bundle) = cursor.respond(bundle)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package com.sattvik.baitha.threading
import android.app.Activity
import android.os._
import java.util.concurrent._
import scala.language.implicitConversions

/** Adds a number of utility functions to facilitate interaction between UI
* and background threads.
Expand Down

0 comments on commit 7ea28e0

Please sign in to comment.