cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject cayenne git commit: CAY-2377 Cleanup deprecated code - minor cleanup
Date Thu, 07 Dec 2017 10:49:00 GMT
Repository: cayenne
Updated Branches:
  refs/heads/master f95604505 -> ab6ec9eed


CAY-2377 Cleanup deprecated code
 - minor cleanup


Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/ab6ec9ee
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/ab6ec9ee
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/ab6ec9ee

Branch: refs/heads/master
Commit: ab6ec9eedb5ff22a6c7e95b92245cf6aec8a32e8
Parents: f956045
Author: Nikita Timofeev <stariy95@gmail.com>
Authored: Thu Dec 7 13:46:32 2017 +0300
Committer: Nikita Timofeev <stariy95@gmail.com>
Committed: Thu Dec 7 13:46:32 2017 +0300

----------------------------------------------------------------------
 .../org/apache/cayenne/configuration/server/ServerRuntime.java   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/ab6ec9ee/cayenne-server/src/main/java/org/apache/cayenne/configuration/server/ServerRuntime.java
----------------------------------------------------------------------
diff --git a/cayenne-server/src/main/java/org/apache/cayenne/configuration/server/ServerRuntime.java
b/cayenne-server/src/main/java/org/apache/cayenne/configuration/server/ServerRuntime.java
index 4a0f22f..0b6a4de 100644
--- a/cayenne-server/src/main/java/org/apache/cayenne/configuration/server/ServerRuntime.java
+++ b/cayenne-server/src/main/java/org/apache/cayenne/configuration/server/ServerRuntime.java
@@ -49,9 +49,8 @@ public class ServerRuntime extends CayenneRuntime {
      * @return a builder of ServerRuntime.
      * @since 4.0
      */
-    @SuppressWarnings("deprecation")
     public static ServerRuntimeBuilder builder() {
-        return new ServerRuntimeBuilder();
+        return new ServerRuntimeBuilder(null);
     }
 
     /**
@@ -60,7 +59,6 @@ public class ServerRuntime extends CayenneRuntime {
      * @param name optional symbolic name of the created runtime.
      * @return a named builder of ServerRuntime.
      */
-    @SuppressWarnings("deprecation")
     public static ServerRuntimeBuilder builder(String name) {
         return new ServerRuntimeBuilder(name);
     }


Mime
View raw message