Skip to content

Commit c7c0a4f

Browse files
eclipse-mylyn-botruspl-afed
authored andcommitted
Perform clean code of mylyn.commons/org.eclipse.mylyn.commons.net
1 parent d9b7a1f commit c7c0a4f

32 files changed

+107
-139
lines changed

mylyn.commons/org.eclipse.mylyn.commons.net/src/org/eclipse/mylyn/commons/net/AbstractWebLocation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2004, 2008 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.net/src/org/eclipse/mylyn/commons/net/AuthenticationCredentials.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2004, 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
@@ -16,7 +16,7 @@
1616

1717
/**
1818
* Provides a user name and password.
19-
*
19+
*
2020
* @author Steffen Pingel
2121
* @since 2.2
2222
* @noextend This class is not intended to be subclassed by clients.

mylyn.commons/org.eclipse.mylyn.commons.net/src/org/eclipse/mylyn/commons/net/AuthenticationType.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2004, 2011 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
@@ -15,7 +15,7 @@
1515

1616
/**
1717
* An enum of the supported authentication types.
18-
*
18+
*
1919
* @since 2.2
2020
* @author Steffen Pingel
2121
*/
@@ -30,7 +30,7 @@ public enum AuthenticationType {
3030
REPOSITORY,
3131
/**
3232
* Client authentication using certificates.
33-
*
33+
*
3434
* @since 3.6
3535
*/
3636
CERTIFICATE,

mylyn.commons/org.eclipse.mylyn.commons.net/src/org/eclipse/mylyn/commons/net/HtmlStreamTokenizer.java

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -329,38 +329,6 @@ public static StringBuffer unescape(StringBuffer sb) {
329329
return sb.replace(0, sb.length(), StringEscapeUtils.unescapeHtml4(sb.toString()));
330330
}
331331

332-
/**
333-
* Parses HTML character and entity references and returns the corresponding character.
334-
*/
335-
private static Character parseReference(String s) {
336-
if (s.length() == 0) {
337-
return null;
338-
}
339-
340-
if (s.charAt(0) == '#') {
341-
// character reference
342-
if (s.length() == 1) {
343-
return null;
344-
}
345-
346-
try {
347-
int value;
348-
if (s.charAt(1) == 'x') {
349-
// Hex reference
350-
value = Integer.parseInt(s.substring(2), 16);
351-
} else {
352-
// Decimal reference
353-
value = Integer.parseInt(s.substring(1));
354-
}
355-
return (char) value;
356-
} catch (NumberFormatException e) {
357-
return null;
358-
}
359-
} else {
360-
return entities.get(s);
361-
}
362-
}
363-
364332
/**
365333
* Class for current token.
366334
*/

mylyn.commons/org.eclipse.mylyn.commons.net/src/org/eclipse/mylyn/commons/net/HtmlTag.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2004, 2011 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
@@ -22,7 +22,7 @@
2222

2323
/**
2424
* Class representing an HTML (3.2) tag and its attributes.
25-
*
25+
*
2626
* @deprecated use org.eclipse.mylyn.commons.core.HtmlTag instead.
2727
* @author Shawn Minto
2828
* @since 2.0
@@ -110,7 +110,7 @@ public String getTagName() {
110110

111111
/**
112112
* Sets the tag's name and type, if known.
113-
*
113+
*
114114
* @throws IllegalArgumentException
115115
* if the argument is <code>null</code> or empty string
116116
*/

mylyn.commons/org.eclipse.mylyn.commons.net/src/org/eclipse/mylyn/commons/net/IProxyProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2004, 2008 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.net/src/org/eclipse/mylyn/commons/net/SslCertificateException.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2009, 2011 BREDEX GmbH.
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
* BREDEX GmbH - initial API and implementation
@@ -16,7 +16,7 @@
1616

1717
/**
1818
* Indicates that the access to a certificate-file failed.
19-
*
19+
*
2020
* @author Torsten Kalix
2121
* @since 3.6
2222
*/

mylyn.commons/org.eclipse.mylyn.commons.net/src/org/eclipse/mylyn/commons/net/UnsupportedRequestException.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2004, 2008 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
@@ -14,7 +14,7 @@
1414

1515
/**
1616
* Indicates that the request is not supported.
17-
*
17+
*
1818
* @author Steffen Pingel
1919
* @since 3.0
2020
*/

mylyn.commons/org.eclipse.mylyn.commons.net/src/org/eclipse/mylyn/commons/net/WebLocation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2004, 2009 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.net/src/org/eclipse/mylyn/commons/net/WebRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2004, 2008 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

0 commit comments

Comments
 (0)