Project

General

Profile

« Previous | Next » 

Revision 59845

changed way to express if condition

View differences:

modules/dnet-collector-plugins/trunk/src/main/java/eu/dnetlib/data/collector/plugins/rest/RestIterator.java
40 40
 *
41 41
 */
42 42
public class RestIterator implements Iterator<String> {
43
	private final String BASIC = "basic";
43 44

  
44 45
	// TODO: clean up the comments of replaced source code
45 46
	private static final Log log = LogFactory.getLog(RestIterator.class); // NOPMD by marko on 11/24/08 5:02 PM
......
261 262
	        	conn.setRequestProperty("Content-Type","application/json");
262 263
	        	conn.setRequestMethod("GET");
263 264
	        	theHttpInputStream = conn.getInputStream();
264
			}else if (this.authMethod == "basic") {
265
			}else if (BASIC.equalsIgnoreCase(this.authMethod)) {
265 266
				log.trace("authMethod before inputStream: " + resultXml);
266 267
				log.debug("authMethod :" + authMethod);
267 268
				HttpURLConnection conn = (HttpURLConnection) qUrl.openConnection();

Also available in: Unified diff