changeset 597:f30b319d57b8

Removed strange character lastIndexOf???('.') in method name. It reported a compilation error on Windows but not on Linux.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Thu, 02 Dec 2021 13:56:58 +0100 (2021-12-02)
parents d30b69ed8e95
children 8e08f4b46486
files src/main/java/org/monetdb/util/FileTransferHandler.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/org/monetdb/util/FileTransferHandler.java
+++ b/src/main/java/org/monetdb/util/FileTransferHandler.java
@@ -93,7 +93,7 @@ public class FileTransferHandler impleme
 		}
 		// In this implementation we ONLY support gzip compression format and none of the other compression formats.
 		if (name.endsWith(".bz2") || name.endsWith(".lz4") || name.endsWith(".xz") || name.endsWith(".zip")) {
-			final String extension = name.substring(name.lastIndexOf​('.'));
+			final String extension = name.substring(name.lastIndexOf('.'));
 			handle.sendError("Specified file compression format " + extension + " is not supported. Only .gz is supported.");
 			return;
 		}
@@ -144,7 +144,7 @@ public class FileTransferHandler impleme
 		}
 		// In this implementation we ONLY support gzip compression format and none of the other compression formats.
 		if (name.endsWith(".bz2") || name.endsWith(".lz4") || name.endsWith(".xz") || name.endsWith(".zip")) {
-			final String extension = name.substring(name.lastIndexOf​('.'));
+			final String extension = name.substring(name.lastIndexOf('.'));
 			handle.sendError("Requested file compression format " + extension + " is not supported. Use .gz instead.");
 			return;
 		}