You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2018/11/03 14:56:54 UTC
svn commit: r1845667 - in /commons/proper/vfs/trunk/commons-vfs2/src:
main/java/org/apache/commons/vfs2/provider/
main/java/org/apache/commons/vfs2/provider/http4/
main/java/org/apache/commons/vfs2/tasks/
main/java/org/apache/commons/vfs2/util/ test/ja...
Author: ggregory
Date: Sat Nov 3 14:56:54 2018
New Revision: 1845667
URL: http://svn.apache.org/viewvc?rev=1845667&view=rev
Log:
Remove trailing white spaces on all lines.
Modified:
commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileSystemConfigBuilder.java
commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/tasks/ShowFileTask.java
commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIBitSets.java
commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIUtils.java
commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/EncryptDecryptTest.java
Modified: commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java?rev=1845667&r1=1845666&r2=1845667&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java (original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java Sat Nov 3 14:56:54 2018
@@ -214,7 +214,7 @@ public abstract class AbstractFileObject
@Override
public void close() throws FileSystemException {
FileSystemException exc = null;
-
+
synchronized (fs) {
// Close the content
if (content != null) {
Modified: commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileSystemConfigBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileSystemConfigBuilder.java?rev=1845667&r1=1845666&r2=1845667&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileSystemConfigBuilder.java (original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileSystemConfigBuilder.java Sat Nov 3 14:56:54 2018
@@ -29,7 +29,7 @@ public class Http4FileSystemConfigBuilde
private static final Http4FileSystemConfigBuilder BUILDER = new Http4FileSystemConfigBuilder();
- /**
+ /**
* Defines the maximum number of connections allowed overall. This value only applies
* to the number of connections from a particular instance of HTTP connection manager.
* <p>
@@ -38,14 +38,14 @@ public class Http4FileSystemConfigBuilde
*/
private static final String MAX_TOTAL_CONNECTIONS = "http.connection-manager.max-total";
- /**
- * Defines the maximum number of connections allowed per host configuration.
- * These values only apply to the number of connections from a particular instance
+ /**
+ * Defines the maximum number of connections allowed per host configuration.
+ * These values only apply to the number of connections from a particular instance
* of HTTP connection manager.
*/
private static final String MAX_HOST_CONNECTIONS = "http.connection-manager.max-per-host";
- /**
+ /**
* Defines the connection timeout of an HTTP request.
* <p>
* This parameter expects a value of type {@link Integer}.
@@ -53,7 +53,7 @@ public class Http4FileSystemConfigBuilde
*/
private static final String CONNECTION_TIMEOUT = "http.connection.timeout";
- /**
+ /**
* Defines the socket timeout of an HTTP request.
* <p>
* This parameter expects a value of type {@link Integer}.
@@ -61,7 +61,7 @@ public class Http4FileSystemConfigBuilde
*/
private static final String SO_TIMEOUT = "http.socket.timeout";
- /**
+ /**
* Defines whether Keep-Alive option is used or not.
* <p>
* This parameter expects a value of type {@link Boolean}.
@@ -69,7 +69,7 @@ public class Http4FileSystemConfigBuilde
*/
private static final String KEEP_ALIVE = "http.keepAlive";
- /**
+ /**
* Defines the keystore file path for SSL connections.
* <p>
* This parameter expects a value of type {@link String}.
@@ -77,7 +77,7 @@ public class Http4FileSystemConfigBuilde
*/
private static final String KEYSTORE_FILE = "http.keystoreFile";
- /**
+ /**
* Defines the keystore pass phrase for SSL connections.
* <p>
* This parameter expects a value of type {@link String}.
@@ -85,7 +85,7 @@ public class Http4FileSystemConfigBuilde
*/
private static final String KEYSTORE_PASS = "http.keystorePass";
- /**
+ /**
* Defines whether the host name should be verified or not in SSL connections.
* <p>
* This parameter expects a value of type {@link Boolean}.
@@ -93,7 +93,7 @@ public class Http4FileSystemConfigBuilde
*/
private static final String HOSTNAME_VERIFICATION_ENABLED = "http.hostname-verification.enabled";
- /**
+ /**
* Defines whether the HttpClient should follow redirections from the responses.
* <p>
* This parameter expects a value of type {@link Boolean}.
@@ -101,7 +101,7 @@ public class Http4FileSystemConfigBuilde
*/
private static final String KEY_FOLLOW_REDIRECT = "followRedirect";
- /**
+ /**
* Defines the User-Agent request header string of the underlying HttpClient.
* <p>
* This parameter expects a value of type {@link String}.
@@ -109,7 +109,7 @@ public class Http4FileSystemConfigBuilde
*/
private static final String KEY_USER_AGENT = "userAgent";
- /**
+ /**
* Defines whether the preemptive authentication should be enabled or not.
* <p>
* This parameter expects a value of type {@link Boolean}.
Modified: commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/tasks/ShowFileTask.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/tasks/ShowFileTask.java?rev=1845667&r1=1845666&r2=1845667&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/tasks/ShowFileTask.java (original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/tasks/ShowFileTask.java Sat Nov 3 14:56:54 2018
@@ -123,7 +123,7 @@ public class ShowFileTask extends VfsTas
private void logContent(final FileObject file, final String prefix) throws Exception {
try (
final InputStream instr = file.getContent().getInputStream();
- final BufferedReader reader = new BufferedReader(new InputStreamReader(instr)); )
+ final BufferedReader reader = new BufferedReader(new InputStreamReader(instr)); )
{
while (true) {
final String line = reader.readLine();
Modified: commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIBitSets.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIBitSets.java?rev=1845667&r1=1845666&r2=1845667&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIBitSets.java (original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIBitSets.java Sat Nov 3 14:56:54 2018
@@ -24,7 +24,7 @@ import org.apache.commons.vfs2.provider.
* Internal URI encoding {@link BitSet} definitions.
* <P>
* This was forked from the {@link BitSet}s in <code>org.apache.commons.httpclient.URI</code>,
- * in order to not be dependent on HttpClient v3 API, when generating and handling {@link GenericURLFileName}s,
+ * in order to not be dependent on HttpClient v3 API, when generating and handling {@link GenericURLFileName}s,
* but it should work with any different HTTP backend provider implementations.
*/
class URIBitSets {
@@ -314,7 +314,7 @@ class URIBitSets {
uric_no_slash.set('$');
uric_no_slash.set(',');
}
-
+
/**
* URI bitset that combines uric_no_slash and uric.
@@ -329,7 +329,7 @@ class URIBitSets {
opaque_part.or(uric_no_slash);
opaque_part.or(uric);
}
-
+
/**
* URI bitset that combines absolute path and opaque part.
@@ -618,7 +618,7 @@ class URIBitSets {
net_path.or(authority);
net_path.or(abs_path);
}
-
+
/**
* BitSet for hier_part.
@@ -778,7 +778,7 @@ class URIBitSets {
* Those characters that are allowed for the opaque_part.
*/
public static final BitSet allowed_opaque_part = new BitSet(256);
- // Static initializer for allowed_opaque_part
+ // Static initializer for allowed_opaque_part
static {
allowed_opaque_part.or(opaque_part);
allowed_opaque_part.clear('%');
@@ -789,7 +789,7 @@ class URIBitSets {
* Those characters that are allowed for the reg_name.
*/
public static final BitSet allowed_reg_name = new BitSet(256);
- // Static initializer for allowed_reg_name
+ // Static initializer for allowed_reg_name
static {
allowed_reg_name.or(reg_name);
// allowed_reg_name.andNot(percent);
Modified: commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIUtils.java?rev=1845667&r1=1845666&r2=1845667&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIUtils.java (original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIUtils.java Sat Nov 3 14:56:54 2018
@@ -29,7 +29,7 @@ import org.apache.commons.vfs2.provider.
* The URI escape and character encoding and decoding utility.
* <P>
* This was forked from some needed methods such as <code>#encodePath(...)</code> in <code>org.apache.commons.httpclient.util.URIUtil</code>,
- * in order to not be dependent on HttpClient v3 API, when generating and handling {@link GenericURLFileName}s,
+ * in order to not be dependent on HttpClient v3 API, when generating and handling {@link GenericURLFileName}s,
* but it should work with any different HTTP backend provider implementations.
*/
public class URIUtils {
@@ -50,7 +50,7 @@ public class URIUtils {
*
* @param unescaped an unescaped string
* @return the escaped string
- *
+ *
* @throws URISyntaxException if the default protocol charset is not supported
*/
public static String encodePath(final String unescaped) throws URISyntaxException {
@@ -64,7 +64,7 @@ public class URIUtils {
* @param unescaped an unescaped string
* @param charset the charset
* @return the escaped string
- *
+ *
* @throws URISyntaxException if the charset is not supported
*/
public static String encodePath(final String unescaped, final String charset) throws URISyntaxException {
@@ -163,7 +163,7 @@ public class URIUtils {
* <P>
* This was forked from some needed methods such as <code>#getBytes(...)</code> and <code>#getAsciiString(...)</code>
* in <code>org.apache.commons.httpclient.util.EncodingUtil</code>,
- * in order to not be dependent on HttpClient v3 API, when generating and handling {@link GenericURLFileName}s,
+ * in order to not be dependent on HttpClient v3 API, when generating and handling {@link GenericURLFileName}s,
* but it should work with any different HTTP backend provider implementations.
*/
private static class EncodingUtils {
@@ -207,7 +207,7 @@ public class URIUtils {
*
* @param data the byte array to be encoded
* @param offset the index of the first byte to encode
- * @param length the number of bytes to encode
+ * @param length the number of bytes to encode
* @return The string representation of the byte array
*/
static String getAsciiString(final byte[] data, final int offset, final int length) {
Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/EncryptDecryptTest.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/EncryptDecryptTest.java?rev=1845667&r1=1845666&r2=1845667&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/EncryptDecryptTest.java (original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/EncryptDecryptTest.java Sat Nov 3 14:56:54 2018
@@ -36,7 +36,7 @@ public class EncryptDecryptTest {
final String decrypted = cryptor.decrypt(encrypted);
assertEquals(source, decrypted);
}
-
+
@Test(expected=IllegalArgumentException.class)
public void testInvalidDecrypt() throws Exception {
// provider.HostFileNameParser.extractToPath(String, StringBuilder) catches `Exception`