}
public void setConnectTimeout(int timeout) {
- this.timeout = new Integer(timeout);
+ this.timeout = Integer.valueOf(timeout);
}
public void setReadTimeout(int readTimeout) {
- this.readTimeout = new Integer(readTimeout);
+ this.readTimeout = Integer.valueOf(readTimeout);
}
public String getContentType() {
}
public void setInstanceFollowRedirects(boolean followRedirects) {
- this.followRedirects = new Boolean(followRedirects);
+ this.followRedirects = Boolean.valueOf(followRedirects);
}
public void setDoOutput(boolean dooutput) {
.forName("javax.crypto.JceSecurity")
.getDeclaredField("isRestricted");
isRestricted.setAccessible(true);
- isRestricted.set(null, new Boolean(restrictedOn));
+ isRestricted.set(null, Boolean.valueOf(restrictedOn));
} catch (Throwable e) {
logger.info(
"Could not setup JCE security policy restrictions.");