lib/nitcorn: fix `non-public init` warnings
authorAlexandre Terrasa <alexandre@moz-code.org>
Wed, 1 Jun 2016 14:49:27 +0000 (10:49 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Wed, 1 Jun 2016 14:49:27 +0000 (10:49 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

lib/nitcorn/http_request.nit
lib/nitcorn/http_response.nit

index 30dc34c..1833fca 100644 (file)
@@ -24,7 +24,7 @@ import core
 
 # A request received over HTTP, is build by `HttpRequestParser`
 class HttpRequest
-       private init do end
+       private init is old_style_init do end
 
        # HTTP protocol version
        var http_version: String
index 3d0fd33..ee09012 100644 (file)
@@ -97,7 +97,7 @@ class HttpStatusCodes
        # All know code and their message
        var codes = new HashMap[Int, String]
 
-       protected init do insert_status_codes
+       protected init is old_style_init do insert_status_codes
 
        # Get the message associated to the status `code`, return `null` in unknown
        fun [](code: Int): nullable String