Merge changes I6728ef75,I5f321aa8 into stable-2.11

* changes:
  Make JdbcUtil#port() public
  Allow to use GWTORM Key classes in plugins
This commit is contained in:
David Pursehouse
2015-11-20 04:47:59 +00:00
committed by Gerrit Code Review
4 changed files with 7 additions and 7 deletions

View File

@@ -106,7 +106,7 @@ public final class Change {
private static final long serialVersionUID = 1L;
@Column(id = 1)
protected int id;
public int id;
protected Id() {
}

View File

@@ -23,9 +23,9 @@ public class LabelId extends StringKey<com.google.gwtorm.client.Key<?>> {
public static final LabelId SUBMIT = new LabelId("SUBM");
@Column(id = 1)
protected String id;
public String id;
protected LabelId() {
public LabelId() {
}
public LabelId(final String n) {

View File

@@ -32,12 +32,12 @@ public final class PatchSet {
private static final long serialVersionUID = 1L;
@Column(id = 1)
protected Change.Id changeId;
public Change.Id changeId;
@Column(id = 2)
protected int patchSetId;
public int patchSetId;
protected Id() {
public Id() {
changeId = new Change.Id();
}

View File

@@ -26,7 +26,7 @@ public class JdbcUtil {
return hostname;
}
static String port(String port) {
public static String port(String port) {
if (port != null && !port.isEmpty()) {
return ":" + port;
}