projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor notification filtering
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
text
/
SoneTextParser.java
diff --git
a/src/main/java/net/pterodactylus/sone/text/SoneTextParser.java
b/src/main/java/net/pterodactylus/sone/text/SoneTextParser.java
index
62fc7dc
..
f338286
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/text/SoneTextParser.java
+++ b/
src/main/java/net/pterodactylus/sone/text/SoneTextParser.java
@@
-1,5
+1,5
@@
/*
/*
- * Sone - SoneTextParser.java - Copyright © 2010–201
3
David Roden
+ * Sone - SoneTextParser.java - Copyright © 2010–201
5
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
@@
-220,7
+220,7
@@
public class SoneTextParser implements Parser<SoneTextParserContext> {
continue;
}
continue;
}
- if (
(linkType == LinkType.KSK) || (linkType == LinkType.CHK) || (linkType == LinkType.SSK) || (linkType == LinkType.USK
)) {
+ if (
linkType.isFreenetLink(
)) {
FreenetURI uri;
if (name.indexOf('?') > -1) {
name = name.substring(0, name.indexOf('?'));
FreenetURI uri;
if (name.indexOf('?') > -1) {
name = name.substring(0, name.indexOf('?'));
@@
-278,7
+278,7
@@
public class SoneTextParser implements Parser<SoneTextParserContext> {
}
for (int partIndex = parts.size() - 1; partIndex >= 0; --partIndex) {
Part part = parts.getPart(partIndex);
}
for (int partIndex = parts.size() - 1; partIndex >= 0; --partIndex) {
Part part = parts.getPart(partIndex);
- if (!(part instanceof PlainTextPart) || !"\n".equals(
((PlainTextPart) part)
.getText())) {
+ if (!(part instanceof PlainTextPart) || !"\n".equals(
part
.getText())) {
break;
}
parts.removePart(partIndex);
break;
}
parts.removePart(partIndex);