Skip to content

Commit 14ad45b

Browse files
eclipse-mylyn-botruspl-afed
authored andcommitted
Perform clean code of mylyn.commons/org.eclipse.mylyn.commons.repositories.http.core
1 parent ed54236 commit 14ad45b

File tree

8 files changed

+20
-29
lines changed

8 files changed

+20
-29
lines changed

mylyn.commons/org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/repositories/http/core/CancellableInputStream.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2013 Tasktop Technologies and others.
3-
*
3+
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
66
* https://www.eclipse.org/legal/epl-2.0
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
99
*
1010
* Tasktop Technologies - initial API and implementation

mylyn.commons/org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/repositories/http/core/CommonHttpResponse.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2011, 2013 Tasktop Technologies and others.
3-
*
3+
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
66
* https://www.eclipse.org/legal/epl-2.0
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
99
*
1010
* Tasktop Technologies - initial API and implementation

mylyn.commons/org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/repositories/http/core/DefaultHttpOperation.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2012 Tasktop Technologies and others.
3-
*
3+
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
66
* https://www.eclipse.org/legal/epl-2.0
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
99
*
1010
* Tasktop Technologies - initial API and implementation
@@ -52,7 +52,7 @@ protected T process(CommonHttpResponse response, IOperationMonitor monitor) thro
5252
doValidate(response, monitor);
5353
return doProcess(response, monitor);
5454
} catch (IOException | RuntimeException e) {
55-
response.release(monitor);
55+
response.release();
5656
throw e;
5757
}
5858
}
@@ -62,7 +62,7 @@ protected T processAndRelease(CommonHttpResponse response, IOperationMonitor mon
6262
doValidate(response, monitor);
6363
return doProcess(response, monitor);
6464
} finally {
65-
response.release(monitor);
65+
response.release();
6666
}
6767
}
6868

mylyn.commons/org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/repositories/http/core/HttpRequestProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2012 Tasktop Technologies and others.
3-
*
3+
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
66
* https://www.eclipse.org/legal/epl-2.0
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
99
*
1010
* Tasktop Technologies - initial API and implementation

mylyn.commons/org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/commons/repositories/http/core/HttpUtil.java

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2011, 2014 Tasktop Technologies and others.
3-
*
3+
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
66
* https://www.eclipse.org/legal/epl-2.0
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
99
*
1010
* Tasktop Technologies - initial API and implementation
@@ -80,12 +80,6 @@ public class HttpUtil {
8080
CoreUtil.initializeLoggingSettings();
8181
}
8282

83-
@SuppressWarnings("unused")
84-
private static final int BUFFER_SIZE = 4096;
85-
86-
@SuppressWarnings("unused")
87-
private static final long CLOSE_TIMEOUT = -1;
88-
8983
/**
9084
* @see IdleConnectionMonitorThread
9185
*/
@@ -101,9 +95,6 @@ public class HttpUtil {
10195

10296
private static final int SOCKET_TIMEOUT = 3 * 60 * 1000;
10397

104-
@SuppressWarnings("unused")
105-
private static final int POLL_ATTEMPTS = SOCKET_TIMEOUT / POLL_INTERVAL;
106-
10798
private static SchemeSocketFactory socketFactory = new PollingProtocolSocketFactory();
10899

109100
private static SchemeSocketFactory sslSocketFactory = new PollingSslProtocolSocketFactory();

mylyn.commons/org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/internal/commons/repositories/http/core/IdleConnectionMonitorThread.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2012 Tasktop Technologies and others.
3-
*
3+
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
66
* https://www.eclipse.org/legal/epl-2.0
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
99
*
1010
* Tasktop Technologies - initial API and implementation
@@ -20,7 +20,7 @@
2020

2121
/**
2222
* Closes idle connections periodically.
23-
*
23+
*
2424
* @author spingel
2525
*/
2626
public class IdleConnectionMonitorThread extends Thread {

mylyn.commons/org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/internal/commons/repositories/http/core/PollingProtocolSocketFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2011, 2013 Tasktop Technologies and others.
3-
*
3+
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
66
* https://www.eclipse.org/legal/epl-2.0
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
99
*
1010
* Tasktop Technologies - initial API and implementation

mylyn.commons/org.eclipse.mylyn.commons.repositories.http.core/src/org/eclipse/mylyn/internal/commons/repositories/http/core/PollingSslProtocolSocketFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2011, 2013 Tasktop Technologies and others.
3-
*
3+
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
66
* https://www.eclipse.org/legal/epl-2.0
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
99
*
1010
* Tasktop Technologies - initial API and implementation
@@ -33,7 +33,7 @@
3333

3434
/**
3535
* Provides support for managing SSL connections.
36-
*
36+
*
3737
* @author Steffen Pingel
3838
*/
3939
public class PollingSslProtocolSocketFactory implements LayeredSchemeSocketFactory {

0 commit comments

Comments
 (0)