Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* Adjust white space and quoting.

  • Loading branch information...
commit 9d2955ae6868b78eaa6ecac1fdff7573d8f0bbfa 1 parent f76247c
@donv donv authored
View
12 sqldroid.gemspec
@@ -1,13 +1,13 @@
# -*- encoding: utf-8 -*-
$:.unshift File.expand_path('lib', File.dirname(__FILE__))
-require "sqldroid/version"
+require 'sqldroid/version'
Gem::Specification.new do |s|
- s.name = "sqldroid"
+ s.name = 'sqldroid'
s.version = SQLDroid::VERSION
- s.authors = ["donv"]
- s.email = ["uwe@kubosch.no"]
- s.homepage = "http://sqldroid.org/"
+ s.authors = %w(donv)
+ s.email = %w(uwe@kubosch.no)
+ s.homepage = 'http://sqldroid.org/'
s.summary = %q{SQLDroid is a JDBC driver for Android's sqlite database (android.database.sqlite.SQLiteDatabase).}
s.description = %q{SQLDroid is a JDBC driver for Android's sqlite database (android.database.sqlite.SQLiteDatabase).
This gem makes the JAR available to your JRuby app.}
@@ -17,5 +17,5 @@ This gem makes the JAR available to your JRuby app.}
s.files = Dir['lib/**/*']
s.test_files = []
s.executables = []
- s.require_paths = ["lib"]
+ s.require_paths = %w(lib)
end
View
2  src/org/sqldroid/SQLDroidConnection.java
@@ -112,7 +112,7 @@ public void clearWarnings() throws SQLException {
/** This will create and return an exception. For API levels less than 9 this will return
* a SQLDroidSQLException, for later APIs it will return a SQLException.
*/
- public static SQLException chainException (android.database.SQLException sqlException) {
+ public static SQLException chainException(android.database.SQLException sqlException) {
if ( sqlThrowable < 0 || sqlThrowable >= 9 ) {
try {
sqlThrowable = 9;
View
1  src/org/sqldroid/SQLDroidDatabaseMetaData.java
@@ -567,7 +567,6 @@ public String getNumericFunctions() throws SQLException {
@Override
public ResultSet getPrimaryKeys(String catalog, String schema, String table) throws SQLException {
-
final String[] columnNames = new String [] {"TABLE_CAT", "TABLE_SCHEM", "TABLE_NAME", "COLUMN_NAME", "KEY_SEQ", "PK_NAME"};
final Object[] columnValues = new Object[] {null, null, null, null, null, null};
SQLiteDatabase db = con.getDb();
View
1  src/org/sqldroid/SQLDroidDriver.java
@@ -61,7 +61,6 @@ public boolean acceptsURL(String url) throws SQLException {
@Override
public Connection connect(String url, Properties info) throws SQLException {
-
return new SQLDroidConnection(url, info);
}
View
15 src/org/sqldroid/SQLiteDatabase.java
@@ -91,11 +91,10 @@ public SQLiteDatabase(String dbQname, long timeout, int flags) throws SQLExcepti
}
delta = System.currentTimeMillis() - timeNow;
if ( delta >= timeout ) {
- throw SQLDroidConnection.chainException (e);
+ throw SQLDroidConnection.chainException(e);
}
- }
- else {
- throw SQLDroidConnection.chainException (e);
+ } else {
+ throw SQLDroidConnection.chainException(e);
}
}
} while (sqliteDatabase == null && delta < timeout);
@@ -119,7 +118,7 @@ public Cursor rawQuery(String sql, String[] makeArgListQueryString) throws SQLEx
if ( isLockedException(e) ) {
delta = System.currentTimeMillis() - timeNow;
} else {
- throw SQLDroidConnection.chainException (e);
+ throw SQLDroidConnection.chainException(e);
}
}
} while (delta < timeout);
@@ -140,7 +139,7 @@ public void execSQL(String sql, Object[] makeArgListQueryObject) throws SQLExcep
if ( isLockedException(e) ) {
delta = System.currentTimeMillis() - timeNow;
} else {
- throw SQLDroidConnection.chainException (e);
+ throw SQLDroidConnection.chainException(e);
}
}
} while (delta < timeout);
@@ -161,7 +160,7 @@ public void execSQL(String sql) throws SQLException {
if ( isLockedException(e) ) {
delta = System.currentTimeMillis() - timeNow;
} else {
- throw SQLDroidConnection.chainException (e);
+ throw SQLDroidConnection.chainException(e);
}
}
} while (delta < timeout);
@@ -202,7 +201,7 @@ public void execNoArgVoidMethod (Transaction transaction ) throws SQLException {
if ( isLockedException(e) ) {
delta = System.currentTimeMillis() - timeNow;
} else {
- throw SQLDroidConnection.chainException (e);
+ throw SQLDroidConnection.chainException(e);
}
}
} while (delta < timeout);
Please sign in to comment.
Something went wrong with that request. Please try again.