This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository topia. See http://git.nuiton.org/topia.git commit 67a76b7bc1837788269be1024df59450e67df9cc Author: Maven Release <maven-release@codelutin.com> Date: Fri Sep 12 15:49:59 2014 +0200 Fix release build issues --- .../org/nuiton/topia/it/TopiaSchemaHelper.java | 19 ++++++++++++++++--- .../persistence/internal/TopiaIdFactoryTest.java | 22 ++++++++++++++++++++++ .../topia/persistence/event/ListenableBean.java | 22 ++++++++++++++++++++++ .../persistence/event/ListenableTopiaEntity.java | 22 ++++++++++++++++++++++ .../persistence/internal/ShortTopiaIdFactory.java | 22 ++++++++++++++++++++++ 5 files changed, 104 insertions(+), 3 deletions(-) diff --git a/topia-it/src/main/java/org/nuiton/topia/it/TopiaSchemaHelper.java b/topia-it/src/main/java/org/nuiton/topia/it/TopiaSchemaHelper.java index 3dbb327..d6e91c9 100644 --- a/topia-it/src/main/java/org/nuiton/topia/it/TopiaSchemaHelper.java +++ b/topia-it/src/main/java/org/nuiton/topia/it/TopiaSchemaHelper.java @@ -31,6 +31,7 @@ import org.nuiton.topia.persistence.TopiaConfigurationConstants; import java.sql.CallableStatement; import java.sql.Connection; import java.sql.DriverManager; +import java.sql.Statement; import java.util.Map; /** @@ -43,10 +44,22 @@ public class TopiaSchemaHelper { private static final Log log = LogFactory.getLog(TopiaSchemaHelper.class); - protected static void closeQuietly(AutoCloseable autoCloseable) { - if (autoCloseable != null) { + protected static void closeQuietly(Connection connection) { + if (connection != null) { try { - autoCloseable.close(); + connection.close(); + } catch (Exception eee) { + if (log.isWarnEnabled()) { + log.warn("Unable to close: " + eee.getMessage() , eee); + } + } + } + } + + protected static void closeQuietly(Statement statement) { + if (statement != null) { + try { + statement.close(); } catch (Exception eee) { if (log.isWarnEnabled()) { log.warn("Unable to close: " + eee.getMessage() , eee); diff --git a/topia-it/src/test/java/org/nuiton/topia/persistence/internal/TopiaIdFactoryTest.java b/topia-it/src/test/java/org/nuiton/topia/persistence/internal/TopiaIdFactoryTest.java index 3fb1143..68ee19e 100644 --- a/topia-it/src/test/java/org/nuiton/topia/persistence/internal/TopiaIdFactoryTest.java +++ b/topia-it/src/test/java/org/nuiton/topia/persistence/internal/TopiaIdFactoryTest.java @@ -1,5 +1,27 @@ package org.nuiton.topia.persistence.internal; +/* + * #%L + * ToPIA :: IT + * %% + * Copyright (C) 2004 - 2014 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ + import org.junit.Assert; import org.junit.Test; import org.nuiton.topia.it.legacy.test.entities.Person; diff --git a/topia-persistence/src/main/java/org/nuiton/topia/persistence/event/ListenableBean.java b/topia-persistence/src/main/java/org/nuiton/topia/persistence/event/ListenableBean.java index 42bf0ce..16947f3 100644 --- a/topia-persistence/src/main/java/org/nuiton/topia/persistence/event/ListenableBean.java +++ b/topia-persistence/src/main/java/org/nuiton/topia/persistence/event/ListenableBean.java @@ -1,5 +1,27 @@ package org.nuiton.topia.persistence.event; +/* + * #%L + * ToPIA :: Persistence + * %% + * Copyright (C) 2004 - 2014 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ + import java.beans.PropertyChangeListener; /** diff --git a/topia-persistence/src/main/java/org/nuiton/topia/persistence/event/ListenableTopiaEntity.java b/topia-persistence/src/main/java/org/nuiton/topia/persistence/event/ListenableTopiaEntity.java index 415de3f..5738b9f 100644 --- a/topia-persistence/src/main/java/org/nuiton/topia/persistence/event/ListenableTopiaEntity.java +++ b/topia-persistence/src/main/java/org/nuiton/topia/persistence/event/ListenableTopiaEntity.java @@ -1,5 +1,27 @@ package org.nuiton.topia.persistence.event; +/* + * #%L + * ToPIA :: Persistence + * %% + * Copyright (C) 2004 - 2014 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ + import java.beans.PropertyChangeListener; import java.beans.VetoableChangeListener; diff --git a/topia-persistence/src/main/java/org/nuiton/topia/persistence/internal/ShortTopiaIdFactory.java b/topia-persistence/src/main/java/org/nuiton/topia/persistence/internal/ShortTopiaIdFactory.java index eec24eb..0f0a607 100644 --- a/topia-persistence/src/main/java/org/nuiton/topia/persistence/internal/ShortTopiaIdFactory.java +++ b/topia-persistence/src/main/java/org/nuiton/topia/persistence/internal/ShortTopiaIdFactory.java @@ -1,5 +1,27 @@ package org.nuiton.topia.persistence.internal; +/* + * #%L + * ToPIA :: Persistence + * %% + * Copyright (C) 2004 - 2014 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ + import java.util.Map; import java.util.Set; import java.util.UUID; -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.