projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Gradle build file
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
template
/
SubstringFilter.java
diff --git
a/src/main/java/net/pterodactylus/sone/template/SubstringFilter.java
b/src/main/java/net/pterodactylus/sone/template/SubstringFilter.java
index
913e058
..
2104888
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/template/SubstringFilter.java
+++ b/
src/main/java/net/pterodactylus/sone/template/SubstringFilter.java
@@
-1,5
+1,5
@@
/*
/*
- * Sone - SubstringFilter.java - Copyright © 2010–201
3
David Roden
+ * Sone - SubstringFilter.java - Copyright © 2010–201
6
David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-48,12
+48,6
@@
public class SubstringFilter implements Filter {
}
String dataString = String.valueOf(data);
int dataLength = dataString.length();
}
String dataString = String.valueOf(data);
int dataLength = dataString.length();
- if (lengthString == null) {
- if (start < 0) {
- return dataString.substring(dataLength + start);
- }
- return dataString.substring(start);
- }
int length = Integer.MAX_VALUE;
try {
length = Integer.parseInt(lengthString);
int length = Integer.MAX_VALUE;
try {
length = Integer.parseInt(lengthString);