From 1a2967b31f910d3b0cb853c1afd6a03479c8a117 Mon Sep 17 00:00:00 2001 From: Charlie Groves Date: Wed, 23 Mar 2011 20:42:00 +0000 Subject: [PATCH] yohoho no longer cares if depot is built with 1.6, so build with that since we're using 1.6's Connection.createArrayOf in PostgreSQL4Builder. Sneak a ooo-buildification in with the compiler version bump. --- .classpath | 2 +- .settings/org.eclipse.jdt.core.prefs | 8 +- bootstrap.xml | 36 +++++++++ build.xml | 75 ++++++------------- pom.xml | 4 +- src/main/java/com/samskivert/depot/Query.java | 1 + .../com/samskivert/depot/impl/Projector.java | 2 +- .../com/samskivert/depot/MigrationTest.java | 2 +- .../com/samskivert/depot/ProjectionTest.java | 2 +- 9 files changed, 69 insertions(+), 63 deletions(-) create mode 100644 bootstrap.xml diff --git a/.classpath b/.classpath index cb112c7..49389bf 100644 --- a/.classpath +++ b/.classpath @@ -3,7 +3,7 @@ - + diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs index 5202975..e37f34d 100644 --- a/.settings/org.eclipse.jdt.core.prefs +++ b/.settings/org.eclipse.jdt.core.prefs @@ -1,6 +1,6 @@ -#Thu Dec 09 14:25:47 PST 2010 +#Wed Mar 23 12:51:22 PDT 2011 eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.compliance=1.6 org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning -org.eclipse.jdt.core.compiler.source=1.5 +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/bootstrap.xml b/bootstrap.xml new file mode 100644 index 0000000..5699b68 --- /dev/null +++ b/bootstrap.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/build.xml b/build.xml index 41d8b39..af826fa 100644 --- a/build.xml +++ b/build.xml @@ -8,48 +8,34 @@ - - - - - - - - - + + + - - - - - - + + + + + + - - - - + classpathref="built.path"/> - - - - + - + + + + - + @@ -71,21 +57,10 @@ - - - - - - + - - - - - + @@ -110,11 +85,11 @@ - - + @@ -128,14 +103,8 @@ - - - - - - - - + diff --git a/pom.xml b/pom.xml index 7562646..b3e8e28 100644 --- a/pom.xml +++ b/pom.xml @@ -86,8 +86,8 @@ maven-compiler-plugin 2.3.2 - 1.5 - 1.5 + 1.6 + 1.6 true true true diff --git a/src/main/java/com/samskivert/depot/Query.java b/src/main/java/com/samskivert/depot/Query.java index 725f2b2..b15f4f8 100644 --- a/src/main/java/com/samskivert/depot/Query.java +++ b/src/main/java/com/samskivert/depot/Query.java @@ -575,6 +575,7 @@ public class Query _pclass = pclass; } + @Override protected Query clone () { try { diff --git a/src/main/java/com/samskivert/depot/impl/Projector.java b/src/main/java/com/samskivert/depot/impl/Projector.java index 21c5dc1..d594bd5 100644 --- a/src/main/java/com/samskivert/depot/impl/Projector.java +++ b/src/main/java/com/samskivert/depot/impl/Projector.java @@ -111,7 +111,7 @@ public abstract class Projector Class ptype, final Class resultType, SQLExpression... selexps) { return new Projector(ptype, selexps) { - public V createObject (Object[] results) { + @Override public V createObject (Object[] results) { try { return _ctor.newInstance(results); } catch (InstantiationException e) { diff --git a/src/test/java/com/samskivert/depot/MigrationTest.java b/src/test/java/com/samskivert/depot/MigrationTest.java index 2910609..a10456b 100644 --- a/src/test/java/com/samskivert/depot/MigrationTest.java +++ b/src/test/java/com/samskivert/depot/MigrationTest.java @@ -69,7 +69,7 @@ public class MigrationTest extends TestBase protected void executeSQL (PersistenceContext ctx, final String sql) { ctx.invoke(new Modifier.Simple() { - protected String createQuery (DatabaseLiaison liaison) { + @Override protected String createQuery (DatabaseLiaison liaison) { return sql; } }); diff --git a/src/test/java/com/samskivert/depot/ProjectionTest.java b/src/test/java/com/samskivert/depot/ProjectionTest.java index f80d322..2d55308 100644 --- a/src/test/java/com/samskivert/depot/ProjectionTest.java +++ b/src/test/java/com/samskivert/depot/ProjectionTest.java @@ -216,7 +216,7 @@ public class ProjectionTest extends TestBase this.id = id; this.name = name; } - public String toString() { + @Override public String toString() { return id + " " + name; } }