juneau-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamesbog...@apache.org
Subject [juneau] branch master updated: Remove unused import statement.
Date Mon, 19 Nov 2018 15:07:54 GMT
This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git


The following commit(s) were added to refs/heads/master by this push:
     new 4701274  Remove unused import statement.
4701274 is described below

commit 470127460b16e96fc01a6e50c6bec71c9df059aa
Author: JamesBognar <jamesbognar@apache.org>
AuthorDate: Mon Nov 19 10:07:41 2018 -0500

    Remove unused import statement.
---
 .../src/main/java/org/apache/juneau/svl/vars/SubstringVar.java | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/juneau-core/juneau-svl/src/main/java/org/apache/juneau/svl/vars/SubstringVar.java
b/juneau-core/juneau-svl/src/main/java/org/apache/juneau/svl/vars/SubstringVar.java
index 92b5b6f..8d83bdb 100644
--- a/juneau-core/juneau-svl/src/main/java/org/apache/juneau/svl/vars/SubstringVar.java
+++ b/juneau-core/juneau-svl/src/main/java/org/apache/juneau/svl/vars/SubstringVar.java
@@ -14,8 +14,6 @@ package org.apache.juneau.svl.vars;
 
 import static org.apache.juneau.internal.ThrowableUtils.*;
 
-import java.util.regex.*;
-
 import org.apache.juneau.svl.*;
 
 /**
@@ -29,7 +27,7 @@ import org.apache.juneau.svl.*;
  * </ul>
  *
  * <p>
- * 
+ *
  *
  * <h5 class='section'>Example:</h5>
  * <p class='bcode w800'>
@@ -65,8 +63,8 @@ public class SubstringVar extends MultipartVar {
 	public String resolve(VarResolverSession session, String[] args) {
 		if (args.length > 3)
 			illegalArg("Invalid number of arguments passed to $ST var.  Must have 1 or 2 arguments.");
-		
-		
+
+
 		String stringArg = args[0];
 		String result = "";
 		if (args.length == 2) {
@@ -76,7 +74,7 @@ public class SubstringVar extends MultipartVar {
 			if (start < 0 && -start <= stringArg.length())
 				result = stringArg.substring(stringArg.length() + start);
 		}
-		else if (args.length == 3) { 
+		else if (args.length == 3) {
 			int start = Integer.parseInt(args[1]);
 			int end = Integer.parseInt(args[2]);
 			if (start >= 0 && start < stringArg.length() && end >= 0 &&
end <= stringArg.length() && start < end)


Mime
View raw message