Jens Geyer created THRIFT-3261: ---------------------------------- Summary: multiple warnings in Java tutorial Key: THRIFT-3261 URL: https://issues.apache.org/jira/browse/THRIFT-3261 Project: Thrift Issue Type: Bug Components: Java - Library Environment: {code} compile: [javac] Compiling 7 source files to /home/jens/Arbeitsfläche/Thrift/tutorial/js/build [javac] Compiling 1 source file to /home/jens/Arbeitsfläche/Thrift/tutorial/js/build [javac] Compiling 1 source file to /home/jens/Arbeitsfläche/Thrift/tutorial/js/build [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:51: warning: [deprecation] DefaultHttpServerConnection in org.apache.http.impl has been deprecated [javac] import org.apache.http.impl.DefaultHttpServerConnection; [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:53: warning: [deprecation] BasicHttpParams in org.apache.http.params has been deprecated [javac] import org.apache.http.params.BasicHttpParams; [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:54: warning: [deprecation] CoreConnectionPNames in org.apache.http.params has been deprecated [javac] import org.apache.http.params.CoreConnectionPNames; [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:55: warning: [deprecation] CoreProtocolPNames in org.apache.http.params has been deprecated [javac] import org.apache.http.params.CoreProtocolPNames; [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:56: warning: [deprecation] HttpParams in org.apache.http.params has been deprecated [javac] import org.apache.http.params.HttpParams; [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:58: warning: [deprecation] BasicHttpProcessor in org.apache.http.protocol has been deprecated [javac] import org.apache.http.protocol.BasicHttpProcessor; [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:62: warning: [deprecation] HttpRequestHandlerRegistry in org.apache.http.protocol has been deprecated [javac] import org.apache.http.protocol.HttpRequestHandlerRegistry; [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:177: warning: [deprecation] FileEntity(File,String) in FileEntity has been deprecated [javac] FileEntity body = new FileEntity(file, "text/html"); [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:197: warning: [rawtypes] found raw type: Processor [javac] TProcessor processor = new Calculator.Processor(new CalculatorHandler()); [javac] ^ [javac] missing type arguments for generic class Processor<I> [javac] where I is a type-variable: [javac] I extends Iface declared in class Processor [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:197: warning: [unchecked] unchecked call to Processor(I) as a member of the raw type Processor [javac] TProcessor processor = new Calculator.Processor(new CalculatorHandler()); [javac] ^ [javac] where I is a type-variable: [javac] I extends Iface declared in class Processor [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:216: warning: [deprecation] HttpParams in org.apache.http.params has been deprecated [javac] private final HttpParams params; [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:221: warning: [deprecation] BasicHttpParams in org.apache.http.params has been deprecated [javac] this.params = new BasicHttpParams(); [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:224: warning: [deprecation] CoreProtocolPNames in org.apache.http.params has been deprecated [javac] .setParameter(CoreProtocolPNames.ORIGIN_SERVER, "HttpComponents/1.1"); [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:223: warning: [deprecation] CoreConnectionPNames in org.apache.http.params has been deprecated [javac] .setBooleanParameter(CoreConnectionPNames.STALE_CONNECTION_CHECK, false).setBooleanParameter(CoreConnectionPNames.TCP_NODELAY, true) [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:223: warning: [deprecation] CoreConnectionPNames in org.apache.http.params has been deprecated [javac] .setBooleanParameter(CoreConnectionPNames.STALE_CONNECTION_CHECK, false).setBooleanParameter(CoreConnectionPNames.TCP_NODELAY, true) [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:222: warning: [deprecation] CoreConnectionPNames in org.apache.http.params has been deprecated [javac] this.params.setIntParameter(CoreConnectionPNames.SO_TIMEOUT, 1000).setIntParameter(CoreConnectionPNames.SOCKET_BUFFER_SIZE, 8 * 1024) [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:222: warning: [deprecation] CoreConnectionPNames in org.apache.http.params has been deprecated [javac] this.params.setIntParameter(CoreConnectionPNames.SO_TIMEOUT, 1000).setIntParameter(CoreConnectionPNames.SOCKET_BUFFER_SIZE, 8 * 1024) [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:227: warning: [deprecation] BasicHttpProcessor in org.apache.http.protocol has been deprecated [javac] HttpProcessor httpproc = new BasicHttpProcessor(); [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:230: warning: [deprecation] HttpRequestHandlerRegistry in org.apache.http.protocol has been deprecated [javac] HttpRequestHandlerRegistry reqistry = new HttpRequestHandlerRegistry(); [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:230: warning: [deprecation] HttpRequestHandlerRegistry in org.apache.http.protocol has been deprecated [javac] HttpRequestHandlerRegistry reqistry = new HttpRequestHandlerRegistry(); [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:234: warning: [deprecation] HttpService(HttpProcessor,ConnectionReuseStrategy,HttpResponseFactory) in HttpService has been deprecated [javac] this.httpService = new HttpService(httpproc, new NoConnectionReuseStrategy(), new DefaultHttpResponseFactory()); [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:235: warning: [deprecation] setParams(HttpParams) in HttpService has been deprecated [javac] this.httpService.setParams(this.params); [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:236: warning: [deprecation] setHandlerResolver(HttpRequestHandlerResolver) in HttpService has been deprecated [javac] this.httpService.setHandlerResolver(reqistry); [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:247: warning: [deprecation] DefaultHttpServerConnection in org.apache.http.impl has been deprecated [javac] DefaultHttpServerConnection conn = new DefaultHttpServerConnection(); [javac] ^ [javac] /home/jens/Arbeitsfläche/Thrift/tutorial/js/src/Httpd.java:247: warning: [deprecation] DefaultHttpServerConnection in org.apache.http.impl has been deprecated [javac] DefaultHttpServerConnection conn = new DefaultHttpServerConnection(); [javac] ^ [javac] 25 warnings
{code} Reporter: Jens Geyer -- This message was sent by Atlassian JIRA (v6.3.4#6332)