SQLite Android Bindings
Check-in [6e0a73af53]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Re-enable logging in CloseGuard.java.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6e0a73af5321c44206186542a7c0ea281d23887d
User & Date: dan 2013-12-26 18:29:17
Context
2013-12-30
14:48
Add the comment "Modified to support SQLite extensions by the SQLite developers: sqlite-dev@sqlite.org." to the top of all files in this project that were copied from Android and then modified. check-in: 9c379550fd user: dan tags: trunk
2013-12-26
18:29
Re-enable logging in CloseGuard.java. check-in: 6e0a73af53 user: dan tags: trunk
17:31
Disable connection pooling in SQLITE_HAS_CODEC builds. Add a test for the same. check-in: 954e5a58f1 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/org/sqlite/database/sqlite/CloseGuard.java.

    11     11    * distributed under the License is distributed on an "AS IS" BASIS,
    12     12    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13     13    * See the License for the specific language governing permissions and
    14     14    * limitations under the License.
    15     15    */
    16     16   
    17     17   package dalvik.system;
           18  +import android.util.Log;
    18     19   
    19     20   /**
    20     21    * CloseGuard is a mechanism for flagging implicit finalizer cleanup of
    21     22    * resources that should have been cleaned up by explicit close
    22     23    * methods (aka "explicit termination methods" in Effective Java).
    23     24    * <p>
    24     25    * A simple example: <pre>   {@code
................................................................................
   220    221       }
   221    222   
   222    223       /**
   223    224        * Default Reporter which reports CloseGuard violations to the log.
   224    225        */
   225    226       private static final class DefaultReporter implements Reporter {
   226    227           @Override public void report (String message, Throwable allocationSite) {
   227         -            /* System.logW(message, allocationSite); */
          228  +            Log.w(message, allocationSite);
   228    229           }
   229    230       }
   230    231   }